Function at 0x100041b6
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, eax
xor eax, eax
mov ecx, 0x5a4d
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
cmp word [ebx], cx
je 0x100041dc
push 0xfffffffffffffffe
pop eax
jmp 0x100043c5
push esi
mov esi, dword [ebx + 0x3c]
push edi
push 0x44
push eax
lea eax, [ebp - 0x70]
push eax
add esi, ebx
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x2cc
stosd dword es:[edi], eax
lea eax, [ebp - 0x33c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x50]
push eax
mov dword [ebp - 0x18], eax
call fcn.10010a45
mov edi, eax
add esp, 0x1c
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x1000422b
push 0xfffffffffffffffd
pop eax
jmp 0x100043c3
mov eax, dword [ebx + 0x3c]
push dword [esi + 0x54]
lea eax, [eax + ebx + 0xf8]
mov dword [ebp - 8], eax
push edi
mov eax, ebx
call fcn.10010b02
pop ecx
pop ecx
mov ecx, dword [esi + 0x54]
xor edx, edx
mov eax, ecx
div dword [esi + 0x38]
mov eax, ecx
test edx, edx
je 0x10004260
mov ecx, dword [esi + 0x38]
xor edx, edx
div ecx
inc eax
imul eax, ecx
add eax, edi
mov dword [ebp - 0xc], eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 4], eax
cmp cx, word [esi + 6]
jae 0x100042bb
mov edi, dword [ebp - 8]
add edi, 8
push dword [edi + 8]
mov eax, dword [edi + 0xc]
push dword [ebp - 0xc]
add eax, ebx
call fcn.10010b02
pop ecx
pop ecx
mov ecx, dword [edi]
xor edx, edx
mov eax, ecx
div dword [esi + 0x38]
mov eax, ecx
test edx, edx
je 0x100042a4
mov ecx, dword [esi + 0x38]
xor edx, edx
div ecx
inc eax
imul eax, ecx
add dword [ebp - 0xc], eax
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jb 0x10004278
mov edi, dword [ebp - 0x10]
xor eax, eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
push eax
push 4
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [ebp - 0x70], 0x44
push eax
call dword [0x1002cdb4]
test eax, eax
je 0x100043a3
lea eax, [ebp - 0x33c]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x33c], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x10004308
push 0xfffffffffffffffc
jmp 0x100043a5
lea ecx, [ebp - 0x2c]
push ecx
push 0x40
push dword [ebp - 0x18]
lea ebx, [esi + 0x34]
mov eax, dword [ebx]
push eax
push dword [ebp - 0x28]
mov dword [ebp - 8], eax
call dword [0x1002cd7c]
test eax, eax
jne 0x1000432b
push 0xfffffffffffffffb
jmp 0x100043a5
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push edi
push dword [ebp - 8]
push dword [ebp - 0x28]
call dword [0x1002cde8]
test eax, eax
jne 0x10004347
push 0xfffffffffffffffa
jmp 0x100043a5
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x298]
push 4
push ebx
add eax, 8
push eax
push dword [ebp - 0x28]
call dword [0x1002cde8]
test eax, eax
jne 0x10004369
push 0xfffffffffffffff9
jmp 0x100043a5
mov eax, dword [esi + 0x28]
add eax, dword [ebx]
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x33c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1000438c
push 0xfffffffffffffff8
jmp 0x100043a5
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1000439e
push 0xfffffffffffffff7
jmp 0x100043a5
xor edi, edi
inc edi
jmp 0x100043b7
push 0xfffffffffffffff6
cmp dword [ebp - 0x28], 0
pop edi
je 0x100043b7
push 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
lea esi, [ebp - 0x10]
call fcn.10010a5b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret