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

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, ecx
mov ebx, eax
mov eax, dword [esi + 0x2c8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x50]
push edi
mov edi, dword [esp + 0x60]
add eax, 4
push edi
push eax
call edx
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fmul dword [ebx + 0x670]
call fcn.00505040
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x5c]
sub eax, dword [ecx + 0x4c]
mov ecx, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2c8]
lea edi, [esp + 0x3c]
mov dword [esp + 0x24], edx
call fcn.004a1120
cmp dword [esp + 0x40], 0
je 0x4b9d2a
mov edx, dword [ebx + 0x7b0]
push edx
mov ecx, edi
mov eax, ebx
call fcn.004b5290
add esp, 4
test al, al
je 0x4b9d2a
mov eax, dword [esp + 0x6c]
and eax, 1
mov dword [esp + 0x14], eax
je 0x4b9a3f
mov ecx, dword [ebx + 0x48]
sub ecx, dword [ebx + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4b9a0e
call fcn.00501daa
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp]
mov edx, dword [edx + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, ebp
call edx
cmp byte [esi + 0xc], 0
fild dword [esp + 0x64]
fstp dword [esp + 0x1c]
jne 0x4b9a58
mov eax, dword [ebx + 0x7ac]
cmp eax, 2
jne 0x4b9ac7
mov ecx, dword [ebx + 0x7b0]
lea eax, [esp + 0x3c]
push eax
push ecx
push ebx
push ebp
call fcn.004b5420
add esp, 0x10
cmp dword [ebx + 0x7ac], 2
mov edi, eax
mov dword [esp + 0x58], eax
jne 0x4b9a90
fld dword [ebx + 0x670]
fadd st(0), st(0)
call fcn.00505040
add edi, eax
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x54]
cmp edi, dword [eax + 0x1c]
jle 0x4b9a9c
mov dword [eax + 0x1c], edi
cmp dword [ebx + 0x7ac], 2
jne 0x4b9ac7
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
fstp dword [esp + 0x1c]
fild dword [esp + 0x58]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x24]
mov edx, dword [esi + 0x2c8]
mov ecx, dword [esp + 0x60]
mov eax, dword [edx + 0x1d8]
call fcn.004c1890
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x64], esi
test edx, edx
jbe 0x4b9aff
mov ecx, dword [esp + 0x40]
cmp byte [eax + ecx], 0xa
je 0x4b9aff
inc eax
cmp eax, edx
jb 0x4b9af4
xor edi, edi
cmp dword [esp + 0x10], esi
mov dword [esp + 0x60], eax
jle 0x4b9b46
jmp 0x4b9b10
cmp esi, edx
jae 0x4b9b46
mov eax, dword [esp + 0x60]
lea ecx, [esi + eax + 1]
mov dword [esp + 0x64], ecx
mov eax, ecx
cmp ecx, edx
jae 0x4b9b35
mov esi, dword [esp + 0x40]
cmp byte [eax + esi], 0xa
je 0x4b9b35
inc eax
cmp eax, edx
jb 0x4b9b26
mov esi, dword [esp + 0x64]
sub eax, ecx
inc edi
cmp edi, dword [esp + 0x10]
mov dword [esp + 0x60], eax
jl 0x4b9b10
cmp dword [esp + 0x14], 0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
je 0x4b9beb
mov eax, dword [ebx + 0x7ac]
cmp eax, 2
jne 0x4b9beb
cmp byte [esp + 0x44], 0
je 0x4b9b89
mov eax, dword [esp + 0x4c]
movzx ecx, byte [eax + esi]
jmp 0x4b9b8d
mov ecx, dword [esp + 0x48]
mov eax, dword [ebp]
mov edi, dword [ebx + 0x7b0]
add eax, 0x38
add edi, ecx
lea esi, [ebx + 0x38]
mov dword [esp + 0x58], eax
call fcn.0049aa90
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 0xc], ecx
mov eax, dword [edx]
mov ecx, ebp
call eax
fld dword [ebx + 0x670]
fadd dword [esp + 0x1c]
mov esi, dword [esp + 0x64]
fstp dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [ebx + 0x7b0]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x74]
push eax
push esi
lea ecx, [esp + 0x58]
push ecx
push edx
push ebp
call fcn.004b56a0
add esp, 0x28
cmp dword [esp + 0x14], 0
je 0x4b9d2a
cmp dword [ebx + 0x7ac], 2
jne 0x4b9d2a
mov eax, dword [ebp]
mov edi, dword [ebx + 0x7b0]
add eax, 0x18
lea esi, [ebx + 0x38]
mov dword [esp + 0x64], eax
call fcn.0049aa90
mov eax, dword [eax + 0x2c]
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [edx]
mov ecx, ebp
call eax
fld dword [esp + 0x20]
call fcn.00505040
fld dword [esp + 0x1c]
mov esi, eax
call fcn.00505040
mov edx, dword [ebp]
mov edi, eax
mov eax, dword [edx + 0x24]
push esi
push edi
mov ecx, ebp
call eax
fld dword [esp + 0x28]
call fcn.00505040
mov edx, dword [ebp]
push eax
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0x28]
push edi
mov ecx, ebp
call eax
fld dword [esp + 0x24]
call fcn.00505040
mov edx, dword [ebp]
mov ebx, eax
mov eax, dword [edx + 0x24]
push esi
push ebx
mov ecx, ebp
call eax
mov eax, dword [esp + 0x64]
mov edx, dword [ebp]
mov edx, dword [edx + 0x28]
push eax
push ebx
mov ecx, ebp
call edx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x68]
cmp ecx, dword [eax + 0x4c]
jne 0x4b9cec
mov edx, dword [ebp]
mov eax, dword [edx + 0x24]
push esi
push edi
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x28]
push esi
push ebx
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 0x4c]
mov eax, dword [esp + 0x54]
lea ecx, [edx + eax - 1]
cmp dword [esp + 0x68], ecx
jne 0x4b9d2a
fld dword [esp + 0x28]
fsub qword [0x556028]
call fcn.00505040
mov edx, dword [ebp]
mov esi, eax
mov eax, dword [edx + 0x24]
push esi
push edi
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x28]
push esi
push ebx
mov ecx, ebp
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x2c