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

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [0x5644a8]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0x14], 0x3f800000
mov eax, dword [esi + 0x178]
mov dword [esp + 0x18], 0x3f800000
test eax, eax
mov dword [esp + 0x1c], 0x3f800000
je 0x4e197d
mov eax, dword [eax]
jmp 0x4e197f
mov eax, ebp
mov edi, 0x56e6c4
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x4e19ac
test cl, cl
je 0x4e19a8
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x4e19ac
add eax, 2
add edi, 2
test cl, cl
jne 0x4e1984
xor eax, eax
jmp 0x4e19b1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4e19de
mov eax, dword [esi + 0x178]
test eax, eax
je 0x4e19c3
mov eax, dword [eax]
jmp 0x4e19c5
mov eax, ebp
push 0
push eax
call fcn.004e5de0
add esp, 8
test eax, eax
je 0x4e1cc3
mov ebp, dword [0x5644a8]
mov eax, dword [esi + 0x178]
test eax, eax
je 0x4e19ec
mov eax, dword [eax]
jmp 0x4e19ee
mov eax, ebp
mov edi, 0x56e6c4
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x4e1a1b
test cl, cl
je 0x4e1a17
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x4e1a1b
add eax, 2
add edi, 2
test cl, cl
jne 0x4e19f3
xor eax, eax
jmp 0x4e1a20
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4e1a32
mov al, byte [esi + 0xd0]
test al, al
je 0x4e1cc3
mov eax, dword [esi + 0x130]
test eax, eax
jne 0x4e1a4f
fld dword [esi + 0x140]
fcomp dword [0x5354c0]
fnstsw ax
test ah, 0x44
jnp 0x4e1a56
mov ecx, esi
call fcn.004e0800
fld dword [esp + 0x38]
fmul dword [esi + 0x144]
mov ecx, esi
fstp dword [esi + 0x148]
call fcn.004e18a0
mov eax, dword [esi + 0x148]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], eax
call dword [0xbf3b74]
fld dword [esi + 0x78]
fcomp dword [0x5354c0]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x4e1aba
fld dword [esi + 0x148]
fmul dword [esi + 0x78]
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
lea edx, [esi + 0x6c]
fstp dword [esp]
push edx
push eax
push ecx
push 0
push 0
call fcn.004dcfe0
add esp, 0x18
mov eax, dword [esi + 0xcc]
cmp eax, 3
jne 0x4e1b09
fld dword [esi + 0x1c]
mov edx, dword [esi + 0x148]
lea eax, [esi + 0xbc]
fstp dword [esp + 0x28]
fld dword [esi + 0x20]
push edx
push 2
push 2
push eax
lea ecx, [esp + 0x30]
push 0xbf3e70
fstp dword [esp + 0x40]
push ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.004dd400
add esp, 0x18
jmp 0x4e1b36
test eax, eax
je 0x4e1b36
mov edx, dword [esi + 0x148]
cmp eax, 2
mov eax, dword [esi + 0x20]
push edx
lea ecx, [esi + 0x8c]
sete dl
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
push 0
push 0
call fcn.004dd010
add esp, 0x1c
mov eax, dword [esi + 0x120]
mov ebx, 1
test eax, eax
je 0x4e1c1b
fld dword [esi + 0x88]
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
fmul dword [esi + 0x148]
mov ecx, dword [esi + 0x84]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x2c], ecx
fstp dword [esp + 0x30]
call dword [0xbf3b74]
mov al, byte [esi + 0x15c]
mov edi, dword [esi + 0x120]
add esp, 4
test al, 8
mov al, byte [edi + 9]
je 0x4e1bd2
test al, al
jne 0x4e1bb8
mov byte [edi + 9], bl
mov eax, dword [edi + 4]
test eax, eax
je 0x4e1ba7
mov eax, dword [eax]
jmp 0x4e1bac
mov eax, dword [0x5644a8]
push eax
call dword [0xbf3b68]
add esp, 4
mov dword [edi], eax
mov eax, dword [edi]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push eax
push ecx
push edx
push 0
push 0
call dword [0xbf3b80]
add esp, 0x14
jmp 0x4e1c1b
test al, al
jne 0x4e1bf5
mov byte [edi + 9], bl
mov eax, dword [edi + 4]
test eax, eax
je 0x4e1be4
mov eax, dword [eax]
jmp 0x4e1be9
mov eax, dword [0x5644a8]
push eax
call dword [0xbf3b68]
add esp, 4
mov dword [edi], eax
mov eax, dword [edi]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push eax
push 0x3f800000
push 0x3f800000
push 0
push 0
push ecx
push edx
push 0
push 0
call dword [0xbf3b7c]
add esp, 0x24
mov al, byte [esi + 0x12d]
test al, al
je 0x4e1c44
mov edi, dword [esi + 0x128]
test edi, edi
je 0x4e1c44
mov al, byte [edi + 9]
test al, al
jne 0x4e1c6b
mov byte [edi + 9], bl
mov eax, dword [edi + 4]
test eax, eax
je 0x4e1c5a
mov eax, dword [eax]
jmp 0x4e1c5f
mov al, byte [esi + 0x12c]
test al, al
je 0x4e1c91
mov edi, dword [esi + 0x124]
test edi, edi
je 0x4e1c91
jmp 0x4e1c2f
mov eax, dword [0x5644a8]
push eax
call dword [0xbf3b68]
mov dword [edi], eax
add esp, 4
mov eax, dword [edi]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push eax
push 0x3f800000
push 0x3f800000
push 0
push 0
push ecx
push edx
push 0
push 0
call dword [0xbf3b7c]
add esp, 0x24
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ebp, dword [esi + 0xe0]
mov edi, ebx
cmp ebp, ebx
jl 0x4e1cc3
lea ebx, [esi + 0x14]
mov ecx, dword [esi + 0x148]
mov edx, dword [esi + 0xdc]
push ecx
push ebx
mov ecx, dword [edx + edi*4 - 4]
call fcn.004e1940
inc edi
cmp edi, ebp
jle 0x4e1ca7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8