Function at 0x100042ec
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
cmp word [edi], ax
je 0x10004317
push 0xfffffffffffffffe
pop eax
jmp 0x10004500
push esi
mov esi, dword [edi + 0x3c]
push 0x44
lea eax, [ebp - 0x6c]
push ebx
push eax
add esi, edi
call fcn.10013ba0
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.10013ba0
push 0x2cc
lea eax, [ebp - 0x338]
push ebx
push eax
call fcn.10013ba0
mov eax, dword [esi + 0x50]
push eax
mov dword [ebp - 0xc], eax
call fcn.10013960
add esp, 0x28
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10004365
push 0xfffffffffffffffd
pop eax
jmp 0x100044ff
push dword [esi + 0x54]
mov ecx, dword [edi + 0x3c]
lea ecx, [ecx + edi + 0xf8]
push edi
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x24], ecx
call fcn.10013ac0
mov ecx, dword [esi + 0x54]
xor edx, edx
mov eax, ecx
div dword [esi + 0x38]
add esp, 0xc
mov eax, ecx
test edx, edx
je 0x1000439f
mov ebx, dword [esi + 0x38]
xor edx, edx
div ebx
inc eax
imul eax, ebx
xor ebx, ebx
add dword [ebp + 8], eax
xor eax, eax
mov dword [ebp - 4], ebx
cmp ax, word [esi + 6]
jae 0x100043f5
mov ebx, dword [ebp - 0x24]
add ebx, 8
push dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call fcn.10013ac0
mov ecx, dword [ebx]
xor edx, edx
mov eax, ecx
div dword [esi + 0x38]
add esp, 0xc
mov eax, ecx
test edx, edx
je 0x100043e1
mov ecx, dword [esi + 0x38]
xor edx, edx
div ecx
inc eax
imul eax, ecx
add dword [ebp + 8], eax
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], eax
jb 0x100043b3
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x6c], 0x44
push ebx
call dword [0x1003aa2c]
test eax, eax
je 0x100044df
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x338], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x10004442
push 0xfffffffffffffffc
jmp 0x100044e1
lea ecx, [ebp - 0x28]
push ecx
push 0x40
push dword [ebp - 0xc]
lea edi, [esi + 0x34]
mov eax, dword [edi]
push eax
push dword [ebp - 0x20]
mov dword [ebp + 8], eax
call dword [0x1003a9f4]
test eax, eax
jne 0x10004465
push 0xfffffffffffffffb
jmp 0x100044e1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 0x20]
call dword [0x1003aa5c]
test eax, eax
jne 0x10004483
push 0xfffffffffffffffa
jmp 0x100044e1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x294]
push 4
push edi
add eax, 8
push eax
push dword [ebp - 0x20]
call dword [0x1003aa5c]
test eax, eax
jne 0x100044a5
push 0xfffffffffffffff9
jmp 0x100044e1
mov eax, dword [esi + 0x28]
add eax, dword [edi]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x100044c8
push 0xfffffffffffffff8
jmp 0x100044e1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x100044da
push 0xfffffffffffffff7
jmp 0x100044e1
xor esi, esi
inc esi
jmp 0x100044f1
push 0xfffffffffffffff6
pop esi
cmp dword [ebp - 0x20], ebx
je 0x100044f1
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 8]
push ebx
push eax
call fcn.10013990
pop ecx
pop ecx
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret