Function at 0x10040053
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10040092
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 1
push dword [ebp - 0x14]
push 0x4a5d
call fcn.100402d6
add esp, 0x14
jmp 0x100402d0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x100400bb
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x100402d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x222d
cmp dword [ebp - 0x20], 0x651
jge 0x1004028b
push 0x107247f0
push 0x1000a0c4
call fcn.1004d4be
pop ecx
pop ecx
and dword [ebp - 8], 0
jmp 0x100400f3
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x107247f0]
jge 0x1004028b
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x1000a390
call fcn.1004d4be
add esp, 0xc
push 0
push 2
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.10066d60
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
add eax, 1
mov ecx, dword [ebp - 0x34]
adc ecx, 0
push ecx
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.10052d00
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x48]
sub eax, 1
mov ecx, dword [ebp - 0x44]
sbb ecx, 0
push 0
push 2
push ecx
push eax
call fcn.10066d60
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
add eax, 1
mov ecx, dword [ebp - 0x34]
adc ecx, 0
push ecx
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.10052d00
mov ecx, dword [ebp - 0x40]
sub ecx, eax
mov eax, dword [ebp - 0x3c]
sbb eax, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
push 0
push 2
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.10066d60
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x50]
add eax, 1
mov ecx, dword [ebp - 0x4c]
adc ecx, 0
push ecx
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.10052d00
push 0
push 2
push edx
push eax
call fcn.10066d60
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x38]
add eax, 1
mov ecx, dword [ebp - 0x34]
adc ecx, 0
push ecx
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.10052d00
sub esi, eax
sbb edi, edx
mov eax, dword [ebp - 0x40]
sub eax, esi
mov ecx, dword [ebp - 0x3c]
sbb ecx, edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x48]
sub eax, 1
mov ecx, dword [ebp - 0x44]
sbb ecx, 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
push 0
push 2
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.10066d60
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x48]
add eax, 1
mov ecx, dword [ebp - 0x44]
adc ecx, 0
push ecx
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.10052d00
push 0
push 2
push edx
push eax
call fcn.10066d60
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x38]
add eax, 1
mov ecx, dword [ebp - 0x34]
adc ecx, 0
push ecx
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.10052d00
sub esi, eax
sbb edi, edx
add esi, dword [ebp - 0x40]
adc edi, dword [ebp - 0x3c]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0x1000a0dc
call fcn.1004d076
add esp, 0xc
jmp 0x100400ec
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100402b3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100402d0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x30]
call fcn.1000dbd4
mov dword [eax], 0xe0a8eac8
jmp 0x100402a8
pop edi
pop esi
mov esp, ebp
pop ebp
ret