Function at 0x10064010
Capabilities:
Resume thread

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x100dbd3c]
xor eax, esp
mov dword [esp + 0x2d8], eax
mov eax, dword [esp + 0x2e0]
push ebp
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x10064040
mov ecx, dword [0x100f4e34]
mov dword [eax], ecx
push ebx
pop ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100f4e2c], eax
je 0x1006406b
mov eax, 0x10dd
pop ebp
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.10074da4
add esp, 0x2dc
ret 4
cmp dword [0x100f4e30], ebp
je 0x10064084
mov edi, edi
call fcn.10063f00
test eax, 0x50cb
jmp 0x100643a7
push ebx
push esi
push edi
test al, al
test edi, edi
nop
mov esi, dword [0x100f4e3c]
cmp esi, ebp
je 0x10064177
mov ebx, 0xd
nop
cmp dword [esi + 4], ebp
je 0x10064121
mov eax, dword [esi + 0x10]
mov ebp, ebp
mov edx, dword [esi + 0x10]
mov edi, dword [edx + 0x20]
test eax, 0x19b9
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
cmp edi, edx
jge 0x100640f5
mov dword [esp + 0x10], ebp
test bh, bh
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
add edx, edi
push edx
call fcn.10064b20
test ch, ch
cmp dword [esp + 0x10], ebp
jne 0x100640f5
mov edi, eax
sub edi, dword [esi + 0x10]
test eax, 0x28c1
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
cmp edi, edx
jl 0x100640c0
mov eax, dword [esi + 0x10]
movzx ecx, byte [eax + 0x17]
cmp edi, ecx
je 0x10064115
mov dword [0x100f4e30], ebx
push ecx
pop ecx
mov edx, dword [esi + 8]
mov dword [0x100f4e34], edx
mov ah, ah
test cl, cl
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov ecx, ecx
jmp 0x1006416d
test dh, dh
test cl, cl
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [esi + 0xc]
lea edx, [eax + 5]
test ah, ah
mov byte [eax], 0xe9
add eax, 1
sub ecx, edx
mov dword [eax], ecx
mov cl, cl
mov dl, dl
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x18]
add eax, 4
cmp eax, ecx
jae 0x1006415d
mov byte [eax], 0xcc
add eax, 1
test ah, ah
cmp eax, ecx
jb 0x10064151
mov edx, edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov al, al
test al, al
test al, al
mov esi, dword [esi]
cmp esi, ebp
jne 0x100640a0
mov edi, dword [0x100f4e38]
cmp edi, ebp
je 0x1006425b
mov ebp, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
test dh, dh
mov dword [esp + 0x1c], 0x10001
mov cl, cl
mov eax, dword [edi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
call ebp
test eax, eax
je 0x1006424f
mov esi, dword [0x100f4e3c]
test esi, esi
je 0x1006424f
mov eax, dword [esp + 0xd4]
cmp dword [esi + 4], 0
je 0x10064203
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x10064245
lea edx, [ecx + 4]
cmp eax, edx
jae 0x10064245
sub eax, ecx
mov dword [esp + 0xd4], eax
mov dl, dl
mov eax, dword [esi + 0xc]
add dword [esp + 0xd4], eax
push ecx
pop ecx
mov edx, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
call ebx
mov bl, bl
jmp 0x1006423e
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x10064245
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x10064245
sub eax, ecx
mov dword [esp + 0xd4], eax
test edx, edx
mov eax, dword [esi + 0x10]
add dword [esp + 0xd4], eax
mov bh, bh
mov edx, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
call ebx
test eax, 0x1341
mov eax, dword [esp + 0xd4]
mov esi, dword [esi]
test esi, esi
jne 0x100641c5
mov edi, dword [edi]
test edi, edi
jne 0x10064191
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
test ebx, ebx
mov esi, dword [0x100f4e3c]
cmp esi, ebp
je 0x1006431c
mov ebp, dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea esp, [esp]
test eax, 0x315f
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.10045350
test al, al
mov edx, dword [esi + 0x10]
movzx eax, byte [edx + 0x17]
mov ecx, dword [esi + 0xc]
push eax
push ecx
push ebx
call ebp
test eax, 0x36f8
xor ecx, ecx
cmp dword [esi + 4], ecx
je 0x100642ff
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x100642ff
mov edx, eax
and edx, 0xffff0000
mov dl, dl
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 dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
test esi, esi
mov edi, dword [edx + 8]
mov dword [eax + 0x18], edi
mov ebx, ebx
mov dword [edx + 8], eax
test esi, esi
mov cl, cl
mov dword [esi + 0x10], ecx
test ch, ch
test bl, bl
mov edi, dword [esi]
test eax, eax
push esi
call fcn.10067310
add esp, 4
test eax, eax
mov esi, edi
mov ah, ah
test edi, edi
jne 0x10064280
xor ebp, ebp
mov dword [0x100f4e3c], ebp
test eax, 0x5796
mov esi, dword [0x100f4e20]
cmp esi, ebp
je 0x10064351
test eax, 0x1177
lea edx, [esp + 0x14]
push edx
push 0x20
push 0x10000
push esi
call fcn.10045350
mov ch, ch
mov esi, dword [esi + 4]
cmp esi, ebp
jne 0x10064331
push edx
pop edx
mov esi, dword [0x100f4e38]
cmp esi, ebp
je 0x10064382
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call ebx
mov eax, eax
mov edi, dword [esi]
xchg ebx, eax
xchg ebx, eax
push esi
call fcn.10067310
add esp, 4
mov dh, dh
mov esi, edi
test cl, cl
cmp edi, ebp
jne 0x10064363
mov dword [0x100f4e38], ebp
test bh, bh
mov dword [0x100f4e2c], ebp
push ecx
pop ecx
mov eax, dword [esp + 0x18]
cmp eax, ebp
pop edi
pop esi
pop ebx
je 0x100643a7
mov ecx, dword [0x100f4e34]
mov dword [eax], ecx
test edx, edx
mov ecx, dword [esp + 0x2dc]
mov eax, dword [0x100f4e30]
pop ebp
xor ecx, esp
call fcn.10074da4
add esp, 0x2dc
ret 4