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

Disassembly:
sub esp, 0x7c
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 0x98]
imul eax, dword [ebp + 0x9c]
shl eax, 2
push eax
call fcn.00509a33
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x20], esi
jne 0x480432
pop esi
pop ebp
add esp, 0x7c
ret 4
push edi
push 0
mov ecx, ebp
call fcn.0047f9c0
mov edi, eax
mov eax, dword [ebp + 0x9c]
test eax, eax
mov dword [esp + 0xc], 0
jle 0x4806a1
push ebx
mov eax, dword [ebp + 0x98]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], ebx
jle 0x480685
fild dword [esp + 0x10]
fst dword [esp + 0x18]
fadd dword [0x5a83f4]
fstp dword [esp + 0x60]
xor ecx, ecx
xor edx, edx
mov cl, byte [edi + 2]
mov dl, byte [edi + 1]
add ecx, edx
xor edx, edx
mov dl, byte [edi]
add ecx, edx
lea edx, [eax - 1]
mov dword [esp + 0x14], ecx
cmp ebx, edx
fild dword [esp + 0x14]
fmul dword [0x5a9000]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
jge 0x4804d1
xor ecx, ecx
xor edx, edx
mov cl, byte [edi + 4]
mov dl, byte [edi + 6]
add ecx, edx
xor edx, edx
mov dl, byte [edi + 5]
add ecx, edx
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul dword [0x5a9000]
jmp 0x4804d5
fld dword [esp + 0x14]
mov ecx, dword [ebp + 0x9c]
mov edx, dword [esp + 0x10]
dec ecx
cmp edx, ecx
jge 0x480509
xor edx, edx
xor ecx, ecx
mov dl, byte [edi + eax*4 + 2]
mov cl, byte [edi + eax*4 + 1]
add edx, ecx
xor ecx, ecx
mov cl, byte [edi + eax*4]
add edx, ecx
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul dword [0x5a9000]
jmp 0x48050d
fld dword [esp + 0x14]
fild dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x3c], edx
fst dword [esp + 0x38]
fld dword [0x5a83f4]
fadd st(1)
fxch st(1)
fstp dword [esp + 0x5c]
mov dword [esp + 0x84], eax
fsub dword [esp + 0x38]
fstp dword [esp + 0x2c]
fld dword [esp + 0x84]
fsub dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x74], ecx
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x30]
fsub dword [esp + 0x1c]
mov dword [esp + 0x78], edx
fstp dword [esp + 0x34]
fld dword [esp + 0x5c]
fsub dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x7c], eax
fstp dword [esp + 0x44]
fld dword [esp + 0x60]
fsub dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x68]
push ecx
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
fsub dword [esp + 0x20]
mov dword [esp + 0x70], edx
lea edx, [esp + 0x78]
push edx
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x58]
push eax
call fcn.0047f490
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.0047f310
fld dword [esp + 0x50]
fmul dword [0x5a8fb8]
fadd dword [0x5a8fb4]
call fcn.0050a970
test eax, eax
jge 0x4805e0
xor eax, eax
jmp 0x4805ec
cmp eax, 0xff
jle 0x4805ec
mov eax, 0xff
fld dword [esp + 0x54]
fmul dword [0x5a8fb8]
mov byte [esi], al
fadd dword [0x5a8fb4]
call fcn.0050a970
test eax, eax
jge 0x48060b
xor eax, eax
jmp 0x480617
cmp eax, 0xff
jle 0x480617
mov eax, 0xff
fld dword [esp + 0x58]
fmul dword [0x5a8fb8]
mov byte [esi + 1], al
fadd dword [0x5a8fb4]
call fcn.0050a970
test eax, eax
jge 0x480637
xor eax, eax
jmp 0x480643
cmp eax, 0xff
jle 0x480643
mov eax, 0xff
fld dword [esp + 0x1c]
fmul dword [0x5a840c]
mov byte [esi + 2], al
call fcn.0050a970
test eax, eax
jge 0x48065d
xor eax, eax
jmp 0x480669
cmp eax, 0xff
jle 0x480669
mov eax, 0xff
mov byte [esi + 3], al
mov eax, dword [ebp + 0x98]
add edi, 4
add esi, 4
inc ebx
cmp ebx, eax
mov dword [esp + 0x20], ebx
jl 0x48047b
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x9c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x480455
mov esi, dword [esp + 0x28]
pop ebx
mov ecx, dword [ebp + 0x9c]
mov edx, dword [ebp + 0x98]
push esi
push 0x1400
push 0x1908
push 1
push ecx
push edx
push 0
push 0
push 0
call fcn.0052e820
push esi
call fcn.005087f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x7c
ret 4