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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
mov esi, dword [edi + 0xc]
mov eax, dword [edi]
test esi, esi
mov ebp, dword [eax]
jl 0x40326b
cmp esi, dword [ebp + 0xc]
jl 0x403297
push 0x6e
push 0x4a10e8
call fcn.00418f50
add esp, 4
push eax
push 0x4a1104
push 0x4b6d60
call fcn.00492257
push 0x4b6d60
call fcn.004187d0
add esp, 0x14
mov ebx, dword [ebp + 4]
mov eax, dword [ebp + 0x14]
imul ebx, esi
add ebx, eax
mov dword [esp + 0x10], ebx
jne 0x4032d7
push 0x250
push 0x4a1488
call fcn.00418f50
add esp, 4
push eax
push 0x4a14a8
push 0x4b6d60
call fcn.00492257
push 0x4b6d60
call fcn.004187d0
add esp, 0x14
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x40352f
jmp 0x4032ee
mov eax, dword [esp + 0x14]
mov esi, dword [ebx]
test eax, eax
jl 0x4032f9
cmp eax, dword [esi + 0xc]
jl 0x403325
push 0x6e
push 0x4a10e8
call fcn.00418f50
add esp, 4
push eax
push 0x4a1104
push 0x4b6d60
call fcn.00492257
push 0x4b6d60
call fcn.004187d0
add esp, 0x14
mov ebp, dword [esi + 4]
mov eax, dword [esi + 0x14]
imul ebp, dword [esp + 0x14]
mov ecx, dword [ebp + eax]
add ebp, eax
mov eax, dword [edi + 0x1c]
dec eax
cmp eax, ecx
jl 0x403510
mov edx, dword [ebp + 4]
add ecx, edx
cmp eax, ecx
jl 0x403354
cmp edx, 0xffffffff
jne 0x403510
mov ebx, dword [esp + 0x74]
push ebx
call fcn.00454400
mov esi, eax
mov ecx, dword [esp + 0x70]
imul esi, dword [ebp + 0x10]
push ebx
add esi, ecx
call fcn.00454410
mov ebx, eax
mov edx, dword [esp + 0x78]
imul ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
add ebx, edx
mov edx, dword [esp + 0x7c]
and eax, 3
xor eax, edx
add esp, 8
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4033b2
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x4033d7
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x28]
imul eax, dword [edi + 0x24]
sar eax, 8
mov dword [esp + 0x1c], eax
mov eax, 0x100
sub eax, ecx
imul eax, dword [ebp + 0x24]
sar eax, 8
add eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x2c]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x40350c
mov edx, dword [edi + 4]
push eax
push edx
call fcn.0044eeb0
mov edx, dword [edi + 0x30]
add esp, 8
test edx, edx
jne 0x403427
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [edi + 4]
push eax
push ebx
push esi
push ecx
push edx
call fcn.00405210
add esp, 0x20
jmp 0x40350c
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebx
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x58], 0x3f800000
mov dword [esp + 0x54], 0x3f800000
mov dword [esp + 0x60], ecx
mov esi, dword [edx]
mov ebx, dword [edx + 4]
push eax
lea edx, [esp + 0x30]
push 0
push edx
push esi
mov dword [esp + 0x38], ebx
mov edi, eax
call fcn.00408a90
add esp, 0x10
cmp eax, 0xffffffff
je 0x403508
mov ecx, dword [esi + 8]
xor edx, edx
dec ecx
test ecx, ecx
jle 0x403501
mov esi, dword [esi + 0x18]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx]
shl ebx, 4
cmp edi, dword [ebx + esi + 0xc]
jle 0x4034e9
mov ebx, dword [esp + 0x20]
inc edx
add ebx, 4
cmp edx, ecx
mov dword [esp + 0x20], ebx
jl 0x4034c8
jmp 0x403501
cmp ecx, edx
jle 0x403501
mov esi, dword [esp + 0x28]
lea esi, [esi + ecx*4]
sub ecx, edx
mov edi, dword [esi - 4]
mov dword [esi], edi
add esi, 0xfffffffc
dec ecx
jne 0x4034f6
mov ecx, dword [esp + 0x28]
mov dword [ecx + edx*4], eax
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x10]
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp]
dec edx
cmp eax, edx
jg 0x40352f
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4032ea
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret