Function at 0x456250
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ea0f0], eax
je 0x456284
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
cmp dword [0x4ea0f4], edi
je 0x4562a8
call fcn.00456150
mov eax, dword [0x4ea0f4]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x4ea100]
cmp esi, edi
je 0x4563ad
jmp 0x4562c0
cmp dword [esi + 4], edi
je 0x456369
mov edx, dword [esi + 0x10]
xor ebx, ebx
cmp byte [edx + 0x17], bl
jbe 0x456342
mov eax, dword [esi + 0xc]
add eax, ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x330], edi
jne 0x4562fe
lea eax, [ebp - 0x44]
cmp edx, edi
jne 0x45630e
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x456329
movzx edi, byte [edx]
push edx
mov edx, dword [edi*8 + 0x4aecf4]
lea edi, [edi*8 + 0x4aecf0]
push eax
push edi
lea ecx, [ebp - 0x60]
call edx
xor edi, edi
mov edx, eax
cmp dword [ebp - 0x330], edi
jne 0x456342
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov ebx, eax
movzx eax, byte [ecx + 0x17]
cmp ebx, eax
jl 0x4562d3
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
cmp ebx, edx
je 0x45635f
mov eax, dword [esi + 8]
mov dword [0x4ea0f4], 0xd
mov dword [0x4ea0f8], eax
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [ecx], edx
jmp 0x4563a3
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
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 + 0x18]
add eax, 5
cmp eax, ecx
jae 0x45639b
sub ecx, eax
push ecx
push 0xcc
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov esi, dword [esi]
cmp esi, edi
jne 0x4562c0
mov ebx, dword [0x4ea0fc]
cmp ebx, edi
je 0x45645b
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x32c]
push ecx
push edx
mov dword [ebp - 0x32c], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x45644f
mov esi, dword [0x4ea100]
test esi, esi
je 0x45644f
mov eax, dword [ebp - 0x274]
cmp dword [esi + 4], 0
je 0x456411
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x456449
lea edx, [ecx + 4]
cmp eax, edx
jae 0x456449
sub eax, ecx
mov dword [ebp - 0x274], eax
add eax, dword [esi + 0xc]
jmp 0x456430
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x456449
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x456449
sub eax, ecx
mov dword [ebp - 0x274], eax
add eax, dword [esi + 0x10]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x32c]
push eax
push ecx
call edi
mov eax, dword [ebp - 0x274]
mov esi, dword [esi]
test esi, esi
jne 0x4563f0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4563c1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x4ea100]
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x330], eax
je 0x4564fd
jmp 0x456480
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x334]
push edx
movzx edx, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call edi
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x330]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor ecx, ecx
cmp dword [esi + 4], ecx
je 0x4564eb
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x4564eb
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov edx, eax
mov dword [eax + 0x1c], ecx
and edx, 0xffff0000
mov ebx, dword [edx + 8]
mov dword [eax + 0x18], ebx
mov dword [edx + 8], eax
mov dword [esi + 0x10], ecx
mov ebx, dword [esi]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x456480
mov esi, dword [0x4ea0e4]
xor ebx, ebx
mov dword [0x4ea100], ebx
cmp esi, ebx
je 0x456528
nop
lea edx, [ebp - 0x330]
push edx
push 0x20
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x456510
mov esi, dword [0x4ea0fc]
cmp esi, ebx
je 0x456550
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call edi
mov ebx, dword [esi]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x456538
mov ecx, dword [ebp - 4]
mov eax, dword [0x4ea0f4]
pop esi
mov dword [0x4ea0fc], ebx
mov dword [0x4ea0f0], ebx
pop ebx
xor ecx, ebp
pop edi
call fcn.00497792
mov esp, ebp
pop ebp
ret