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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov ebx, ecx
mov eax, dword [esp + 0x78]
sub ebx, edi
mov dword [esp + 0x28], edx
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x64]
mov dword [esp + 0x34], ecx
cmp eax, edi
jge 0x416560
lea eax, [edi + 0x3fffffff]
lea esi, [ebx + 1]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x38], eax
lea eax, [ebx + ebx]
lea edx, [eax + 1]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edx
mov edx, ecx
sub edx, eax
mov dword [esp + 8], esi
mov esi, dword [esp + 0x2c]
lea ecx, [edx*4 - 4]
mov edx, dword [esp + 0x28]
mov eax, ecx
mov dword [esp + 0x44], ecx
add edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x48], edx
add ecx, eax
lea eax, [edi + 0x3fffffff]
sub eax, ebx
lea eax, [esi + eax*4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
call fcn.00416110
mov edx, edi
sub edx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
cmp edx, ebx
jg 0x416508
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 0x4c], edx
call fcn.00404360
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
xor eax, eax
test ecx, ecx
jne 0x41653a
lea esi, [edi + 0x3fffffff]
mov dword [ebp + esi*4], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x40]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00404250
add ebp, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004042f7
test eax, eax
je 0x4164f5
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
lea edx, [eax - 1]
mov dword [esi], edx
test eax, eax
jne 0x4164d9
mov esi, dword [esp + 0x24]
mov eax, 1
jmp 0x4164d0
mov edx, dword [esi + eax*4]
lea ecx, [edx - 1]
mov dword [esi + eax*4], ecx
add eax, 1
test edx, edx
jne 0x4164d9
cmp ebx, eax
jg 0x4164c0
sub dword [esp + 0x38], 1
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004041a0
mov eax, dword [esp + 0x38]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 0x4c], edx
call fcn.00404360
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
xor eax, eax
test ecx, ecx
je 0x41644e
mov esi, dword [esp + 0x2c]
lea eax, [ebp + ebx*4]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp], eax
call fcn.004041a0
jmp 0x41644e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], edi
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x24]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00416110