Function at 0x40ef3a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 8], edx
mov edx, dword [edi]
mov dword [edi], eax
mov dword [ebx], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], edx
cmp dword [esi + 0x18], eax
je 0x40ef81
mov eax, dword [esi + 0x1c]
jmp 0x40f16f
cmp dword [esi + 0xc], 0
lea eax, [esi + 0x20]
mov dword [ebp - 0x4c], eax
mov dword [eax], 2
je 0x40f057
mov edi, dword [ebp - 0x30]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push dword [ebp + 0x18]
mov dword [ebp - 8], edx
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [esi + 0x78]
call dword [esi + 0x88]
mov ecx, dword [esi + 0x20]
add esp, 0x20
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x1c], eax
mov dword [ebx], ecx
xor ebx, ebx
mov dword [ebp - 0x1c], eax
inc ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x1c]
add eax, edx
mov dword [esi + 0x14], eax
test ecx, ecx
jne 0x40eff2
cmp dword [ebp + 0x18], 0
jne 0x40eff2
cmp dword [ebp - 0x10], ebx
jne 0x40eff5
mov dword [esi + 0x18], ebx
cmp dword [esi + 8], ebx
jne 0x40f001
mov dword [edi], edx
jmp 0x40f16d
cmp dword [esi + 0x18], 0
je 0x40f16d
mov dword [ebp - 0x20], ebx
cmp dword [esi + 8], ebx
jbe 0x40f050
lea edi, [esi + 0x90]
push eax
push dword [esi + 0xc]
push dword [edi]
call dword [edi + 0x14]
add esp, 0xc
cmp dword [ebp - 0x10], ebx
je 0x40f038
cmp dword [ebp + 0xc], 0
je 0x40f03b
mov ecx, dword [ebp - 0x34]
cmp dword [esi + 0x14], ecx
jne 0x40f03b
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x20]
add edi, 0x18
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, dword [esi + 8]
jb 0x40f019
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [edi], eax
jmp 0x40f16d
mov edx, dword [esi + 8]
xor ebx, ebx
inc ebx
cmp edx, ebx
je 0x40f08e
cmp dword [esi + 4], 0
jne 0x40f085
mov ecx, dword [esi]
push 0x60000
push ecx
call dword [ecx]
mov dword [esi + 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x40f082
push 2
pop eax
jmp 0x40f16f
lea eax, [esi + 0x20]
and dword [ebp - 0x38], 0
mov edx, dword [esi + 8]
jmp 0x40f094
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x38], ecx
and dword [ebp - 0x1c], 0
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x18], ecx
mov dword [eax], 2
test edx, edx
je 0x40f16b
lea eax, [edi + 5]
mov dword [ebp - 0x48], ecx
imul eax, eax, 0x18
add eax, esi
mov dword [ebp - 0x2c], eax
test edi, edi
jne 0x40f0db
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebx]
xor ebx, ebx
inc ebx
jmp 0x40f104
mov ecx, dword [esi + 4]
lea eax, [edi - 1]
shl eax, 0x11
add ecx, eax
mov eax, ecx
mov dword [ebp - 0x24], ecx
add eax, dword [esi + edi*4 + 0x2c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + edi*4 + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + edi*4 + 0x38]
sub eax, dword [esi + edi*4 + 0x2c]
mov dword [ebp - 0x10], eax
lea eax, [edx - 1]
cmp edi, eax
jne 0x40f11b
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
sub edx, dword [ecx]
jmp 0x40f132
mov eax, dword [esi + edi*4 + 0x30]
cmp eax, dword [esi + edi*4 + 0x3c]
jne 0x40f148
mov eax, edi
mov edx, 0x20000
shl eax, 0x11
add eax, dword [esi + 4]
mov ecx, dword [esi + edi*4 + 0x68]
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x40f17e
mov eax, dword [ebp - 0x48]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi + 8]
inc edi
cmp edi, edx
jb 0x40f0b0
test eax, eax
lea eax, [esi + 0x20]
jne 0x40f094
cmp dword [ebp - 0x44], 0
je 0x40f16d
mov eax, dword [ebp - 0x4c]
mov dword [eax], ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bb79
leave
ret
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x3c]
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [eax + 0x10]
mov edx, eax
add esp, 0x20
test edx, edx
je 0x40f1b4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov dword [esi + edi*4 + 0x68], edx
cmove ecx, edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0xc]
cmp eax, ebx
push 0
pop ecx
sete cl
mov dword [ebp - 0x2c], ecx
je 0x40f1d4
and dword [ebp - 0x44], 0
cmp dword [esi + 8], ebx
jne 0x40f1d4
test edx, edx
jne 0x40f1d4
mov dword [esi + 0x20], eax
mov edx, dword [ebp - 0x10]
test edi, edi
jne 0x40f1e5
mov eax, dword [ebp - 0x40]
add dword [eax], edx
add dword [ebp - 0x20], edx
jmp 0x40f1e9
add dword [esi + edi*4 + 0x2c], edx
mov eax, dword [esi + 8]
dec eax
cmp edi, eax
mov eax, dword [ebp - 0x14]
jne 0x40f1fe
mov ecx, dword [ebp - 0x28]
add dword [ecx], eax
add dword [ebp - 8], eax
jmp 0x40f20e
mov ecx, dword [ebp - 0x2c]
and dword [esi + edi*4 + 0x30], 0
mov dword [esi + edi*4 + 0x3c], eax
mov dword [esi + edi*4 + 0x24], ecx
mov ecx, dword [ebp - 0x18]
test eax, eax
jne 0x40f21d
test edx, edx
je 0x40f148
mov eax, ebx
mov dword [ebp - 0x1c], eax
jmp 0x40f14b