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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 0xc]
sub esp, 0x54
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0040f150
mov ecx, dword [esi + 0x15c]
sub ecx, dword [esi + 0x107c]
mov edi, dword [esi + 0x154]
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x160]
add edi, dword [esi + 0x1074]
add edx, dword [esi + 0x1078]
sub eax, dword [esi + 0x1080]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x1090]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x415fb5
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x415fb5
mov ecx, dword [esi + 0x1090]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
sub dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x1094]
test ecx, ecx
je 0x415fdd
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x415fdd
mov ecx, dword [esi + 0x1094]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
sub dword [ebp + 0x14], eax
cmp dword [esi + 0x106c], 0
jne 0x415fed
push 0
jmp 0x4163a7
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
sub edi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x1094]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
test ecx, ecx
je 0x416029
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x416029
mov eax, dword [esi + 0x1094]
add edi, dword [eax + 0x1068]
mov dword [esp + 0x30], edi
xor ecx, ecx
xor edi, edi
cmp dword [esi + 0x106c], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
jle 0x416131
mov ecx, dword [esi + 0x1068]
mov edx, dword [esp + 0x14]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xc8]
mov ecx, edi
call edx
test al, al
je 0x416114
mov eax, dword [edi]
mov edx, dword [eax + 0xf4]
mov ecx, edi
call edx
test al, al
jne 0x416114
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
mov eax, dword [eax + 0x114]
push ebx
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call eax
cmp dword [esp + 0x2c], 0
jne 0x4160a2
inc dword [esp + 0x10]
jmp 0x4160e0
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp dword [esp + 0x2c], eax
jge 0x4160be
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x2c], eax
jle 0x4160e0
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call edx
mov eax, dword [eax + 4]
add eax, dword [ebx]
mov ebx, dword [esp + 0x34]
add eax, dword [esp + 0x2c]
add dword [esp + 0x18], eax
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x106c]
mov dword [esp + 0x14], eax
jl 0x416049
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x1084]
dec eax
imul edx, eax
mov dword [esp + 0x24], eax
xor eax, eax
add ecx, edx
cmp edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
jle 0x416168
mov eax, ebx
sub eax, ecx
cdq
idiv edi
xor ecx, ecx
test eax, eax
setl cl
dec ecx
and ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x1090]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], edi
test ecx, ecx
je 0x416197
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x416197
mov ecx, dword [esi + 0x1090]
sub edi, dword [ecx + 0x106c]
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x1094]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x4161c6
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x4161c6
mov ecx, dword [esi + 0x1094]
sub edi, dword [ecx + 0x106c]
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x106c], 0
mov dword [esp + 0x14], 0
jle 0x416397
mov edx, dword [esi + 0x1068]
mov eax, dword [esp + 0x14]
mov edi, dword [edx + eax*4]
mov edx, dword [edi]
mov eax, dword [edx + 0xc8]
mov ecx, edi
call eax
test al, al
je 0x416382
mov edx, dword [edi]
mov eax, dword [edx + 0xf4]
mov ecx, edi
call eax
test al, al
je 0x416222
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x1b0]
push eax
mov ecx, esi
call edx
jmp 0x416382
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call edx
sub ebx, dword [esp + 0x44]
mov edx, dword [edi]
mov edx, dword [edx + 0x114]
push ebx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call edx
cmp dword [esp + 0x2c], 0
mov ecx, edi
jne 0x416262
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
call eax
cmp dword [esp + 0x2c], eax
jge 0x41627c
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x2c], eax
jle 0x41629e
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4162bf
mov eax, ebx
sub eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
test eax, eax
jge 0x4162c9
mov dword [esp + 0x28], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
cmp dword [esp + 0x28], eax
jge 0x4162e5
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
cmp dword [esp + 0x28], eax
jle 0x416301
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
add ebx, eax
add edx, ecx
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x28]
add ecx, ebx
mov ebx, dword [esp + 0x2c]
add ecx, dword [esp + 0x1c]
add eax, ebx
add eax, dword [esp + 0x10]
mov ebx, dword [edi]
mov dword [esp + 0x5c], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x1084]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
lea edi, [eax + ecx]
add edi, edx
add edi, dword [esp + 0x44]
add eax, ecx
add dword [esp + 0x10], edi
lea edi, [ecx + edx]
add edi, dword [esp + 0x44]
add eax, edx
add dword [esp + 0x18], edi
sub ebx, eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x106c]
mov dword [esp + 0x14], eax
jl 0x4161db
mov eax, dword [esi + 0x1084]
imul eax, dword [esp + 0x24]
add eax, dword [esp + 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x1b4]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10