Function at 0x41d360
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4b60c0], eax
je 0x41d394
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
cmp dword [0x4b60c4], 0
je 0x41d3b5
call fcn.0041d280
mov eax, dword [0x4b60c4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x4b60d0]
push edi
mov dword [ebp - 0x2d4], 0
test esi, esi
je 0x41d438
lea esp, [esp]
cmp dword [esi + 4], 0
je 0x41d3f8
mov eax, dword [esi + 0x10]
movzx ecx, byte [eax + 0x36]
mov edx, dword [esi + 0xc]
push ecx
add eax, 0x20
push eax
push edx
call fcn.0047b540
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov dword [eax], ecx
jmp 0x41d432
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [edx + 0x44]
lea edx, [eax + 5]
sub ecx, edx
mov byte [eax], 0xe9
mov dword [eax + 1], ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x40]
add eax, 5
cmp eax, ecx
jae 0x41d42a
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.00480950
add esp, 0xc
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov esi, dword [esi]
test esi, esi
jne 0x41d3d0
mov eax, dword [0x4b60cc]
mov ebx, eax
test eax, eax
je 0x41d54a
jmp 0x41d450
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x2d0]
push ecx
push edx
mov dword [ebp - 0x2d0], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x41d540
mov edi, dword [0x4b60d0]
test edi, edi
je 0x41d540
mov ecx, dword [ebp - 0x218]
cmp dword [edi + 4], 0
je 0x41d4e4
mov esi, dword [edi + 0x10]
cmp ecx, esi
jb 0x41d536
lea eax, [esi + 4]
cmp ecx, eax
jae 0x41d536
xor eax, eax
sub cl, byte [edi + 0x10]
jmp 0x41d4b0
mov dl, byte [esi + eax + 0x38]
shr dl, 3
cmp dl, cl
je 0x41d4dc
inc eax
cmp eax, 8
jb 0x41d4b0
xor al, al
mov edx, dword [ebx + 4]
movzx eax, al
add eax, dword [edi + 0xc]
lea ecx, [ebp - 0x2d0]
push ecx
mov dword [ebp - 0x218], eax
push edx
jmp 0x41d52a
mov al, byte [eax + esi + 0x38]
and al, 7
jmp 0x41d4c3
mov eax, dword [edi + 0xc]
cmp ecx, eax
jb 0x41d536
mov esi, dword [edi + 0x10]
movzx edx, byte [esi + 0x36]
add edx, eax
cmp ecx, edx
jae 0x41d536
xor eax, eax
sub cl, byte [edi + 0xc]
lea ecx, [ecx]
mov dl, byte [esi + eax + 0x38]
and dl, 7
cmp dl, cl
je 0x41d699
inc eax
cmp eax, 8
jb 0x41d500
xor eax, eax
mov ecx, dword [ebx + 4]
add esi, eax
lea eax, [ebp - 0x2d0]
push eax
mov dword [ebp - 0x218], esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x218]
mov edi, dword [edi]
test edi, edi
jne 0x41d487
mov ebx, dword [ebx]
test ebx, ebx
jne 0x41d450
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x4b60d0]
mov dword [ebp - 0x2d8], eax
test esi, esi
je 0x41d5eb
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x2dc]
push edx
movzx edx, byte [ecx + 0x36]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x36]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x2d8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esi + 4], 0
je 0x41d5d6
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x41d5d6
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.00480950
mov edx, dword [edi + 8]
mov dword [ebx + 0x40], edx
mov dword [edi + 8], ebx
add esp, 0xc
mov dword [esi + 0x10], 0
mov dword [ebp - 0x2d4], 1
mov edi, dword [esi]
push esi
call fcn.0047659a
add esp, 4
mov esi, edi
test edi, edi
jne 0x41d564
cmp dword [ebp - 0x2d4], 0
mov dword [0x4b60d0], 0
je 0x41d60c
cmp dword [0x4b60bc], 0
jne 0x41d60c
call fcn.0041d190
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x4b60b0]
mov edi, eax
test esi, esi
je 0x41d649
mov edi, edi
lea eax, [ebp - 0x2dc]
push eax
push 0x20
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esi, dword [esi + 4]
test esi, esi
jne 0x41d620
mov esi, dword [0x4b60cc]
test esi, esi
je 0x41d677
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov ecx, dword [esi + 4]
push ecx
call ebx
mov edi, dword [esi]
push esi
call fcn.0047659a
add esp, 4
mov esi, edi
test edi, edi
jne 0x41d660
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
mov dword [0x4b60cc], eax
mov dword [0x4b60c0], eax
mov eax, dword [0x4b60c4]
xor ecx, ebp
pop ebx
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
movzx eax, byte [eax + esi + 0x38]
shr eax, 3
jmp 0x41d517