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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52c19b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [esi + 8]
cmp eax, 2
jl 0x4d8a2b
lea ecx, [esp + 0xe8]
call fcn.004c5e30
xor ebx, ebx
lea ecx, [esp + 0x128]
mov dword [esp + 0x420], ebx
call fcn.004e0580
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x420], 1
call fcn.004e3950
lea ecx, [esp + 0x68]
mov byte [esp + 0x420], 2
call fcn.00487f90
lea ecx, [esp + 0x88]
mov byte [esp + 0x420], 3
call fcn.00487f90
mov edi, dword [ebp + 8]
lea eax, [esp + 0x88]
push eax
push edi
mov byte [esp + 0x428], 4
call fcn.00504c40
push 0x5ac440
push esi
call fcn.00504c40
add esp, 0x10
lea ecx, [esp + 0x88]
push ecx
mov ecx, 0x5ac440
call fcn.004880c0
mov ecx, 0x5ac440
call fcn.00488500
fstp qword [0x5ac528]
push edi
call fcn.00499250
fstp qword [esp + 0x28]
push esi
call fcn.00499250
fadd qword [esp + 0x2c]
add esp, 8
lea edx, [esp + 0x88]
mov ecx, 0x5ac440
push edx
fstp qword [0x5ac530]
call fcn.00488080
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], 0xffffffff
dec eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
mov ecx, dword [eax]
call fcn.00498b90
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + ecx*4]
call fcn.00498b90
mov edx, dword [esp + 0x14]
fld qword [edx]
fcomp qword [eax]
fnstsw ax
test ah, 1
mov eax, dword [esi + 4]
je 0x4d81df
mov ecx, dword [eax]
call fcn.00498b90
fld qword [eax]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 1
jne 0x4d8225
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx + edx*4]
call fcn.00498b90
fld qword [eax + 0x10]
fcomp qword [esp + 0x98]
fnstsw ax
test ah, 0x41
jne 0x4d8232
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
dec eax
mov dword [esp + 0x20], eax
jmp 0x4d8232
mov ecx, dword [esp + 0x20]
mov ecx, dword [eax + ecx*4]
call fcn.00498b90
fld qword [eax]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 1
je 0x4d820a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
dec eax
mov dword [esp + 0x20], eax
jmp 0x4d8232
mov edx, dword [esi + 4]
mov ecx, dword [edx]
call fcn.00498b90
fld qword [eax + 0x10]
fcomp qword [esp + 0x98]
fnstsw ax
test ah, 0x41
jne 0x4d8232
mov dword [esp + 0x1c], 0
mov ebx, 1
cmp ebx, dword [esp + 0x20]
jg 0x4d84c1
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*4]
mov dword [esp + 0x14], ecx
call fcn.00498b90
push eax
lea ecx, [esp + 0x6c]
call fcn.00488080
push 0x3ff66666
push 0x66666666
lea ecx, [esp + 0x70]
call fcn.00488160
fld qword [esp + 0xa0]
fadd qword [esp + 0x90]
xor eax, eax
mov dword [esp + 0x2c], 0x534048
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
fmul qword [0x531170]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
fstp qword [esp + 0x70]
mov ecx, dword [edi + 8]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x428], 5
call fcn.004ecdd0
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov edx, eax
dec eax
test edx, edx
je 0x4d82e4
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
add ecx, 4
dec edx
mov dword [esp + 0x18], edx
jne 0x4d82cf
test ebx, ebx
je 0x4d8342
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov ecx, dword [eax + ebx*4 - 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
inc eax
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004ecdd0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [edx + ecx*4], eax
mov edx, dword [esi + 4]
mov ecx, dword [edx + ebx*4 - 4]
call fcn.00498b90
fld qword [eax]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 1
jne 0x4d8342
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*4 - 4]
call fcn.00498b90
fld qword [eax]
fstp qword [esp + 0x68]
mov ecx, dword [esi + 8]
dec ecx
cmp ebx, ecx
je 0x4d83a6
mov edx, dword [esi + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
mov eax, dword [edx + ebx*4 + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.004ecdd0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + ebx*4 + 4]
call fcn.00498b90
fld qword [eax + 0x10]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
je 0x4d83a6
mov edx, dword [esi + 4]
mov ecx, dword [edx + ebx*4 + 4]
call fcn.00498b90
fld qword [eax + 0x10]
fstp qword [esp + 0x78]
lea ecx, [esp + 0x1b8]
call fcn.004e3d70
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x1b8]
push eax
lea edx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00498bf0
sub esp, 8
fstp qword [esp]
call fcn.004e6e10
add esp, 0x18
test al, al
je 0x4d8483
sub esp, 0x20
lea edx, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00487fa0
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x440], 5
call fcn.0040a180
push eax
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x150]
call fcn.004e06a0
push 0
push 0
lea ecx, [esp + 0xb0]
push 0x4d1660
lea edx, [esp + 0x1c4]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.0040a180
push eax
lea ecx, [esp + 0x140]
call fcn.004e3020
test al, al
je 0x4d8483
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0xcc]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0xcc]
push edx
call dword [eax + 0xc]
mov dword [esp + 0x2c], 0x534048
mov eax, dword [esp + 0x30]
mov byte [esp + 0x420], 7
test eax, eax
je 0x4d84a4
push eax
call fcn.0051aee4
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
mov byte [esp + 0x420], 4
mov dword [esp + 0x2c], 0x53138c
jle 0x4d823c
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4d89c7
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x14], ecx
call fcn.00498b90
push eax
lea ecx, [esp + 0x6c]
call fcn.00488080
push 0x3ff66666
push 0x66666666
lea ecx, [esp + 0x70]
call fcn.00488160
fld qword [esp + 0xa0]
fadd qword [esp + 0x90]
xor eax, eax
mov dword [esp + 0x40], 0x534048
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], eax
fmul qword [0x531170]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
fstp qword [esp + 0x70]
mov edx, dword [edi + 8]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x428], 8
call fcn.004ecdd0
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x44]
mov ebx, eax
dec eax
test ebx, ebx
je 0x4d8562
inc eax
mov ebx, dword [edx]
add edx, 4
mov dword [ecx], ebx
add ecx, 4
dec eax
jne 0x4d8555
lea eax, [esp + 0x88]
mov ecx, 0x5ac440
push eax
call fcn.00488080
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, eax
jle 0x4d85cf
cmp ebx, dword [esp + 0x1c]
je 0x4d85c7
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
inc eax
mov edx, dword [ecx + ebx*4]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], edx
call fcn.004ecdd0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*4]
call fcn.00498b90
push eax
mov ecx, 0x5ac440
call fcn.004880c0
mov eax, dword [esi + 8]
inc ebx
cmp ebx, eax
jl 0x4d857d
lea ecx, [esp + 0x1b8]
call fcn.004e3d70
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0xe8]
lea edx, [esp + 0x1b8]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, ebx
call fcn.00498bf0
sub esp, 8
fstp qword [esp]
call fcn.004e6e10
add esp, 0x18
test al, al
je 0x4d86da
sub esp, 0x20
lea edx, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00487fa0
mov ecx, ebx
mov byte [esp + 0x440], 8
call fcn.0040a180
push eax
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x150]
call fcn.004e06a0
xor ebx, ebx
lea ecx, [esp + 0xa8]
push ebx
push ebx
push 0x4d1660
lea edx, [esp + 0x1c4]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.0040a180
push eax
lea ecx, [esp + 0x140]
call fcn.004e3020
test al, al
je 0x4d86dc
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0xcc]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0xcc]
push edx
call dword [eax + 0xc]
mov dword [esp + 0x40], 0x534048
mov eax, dword [esp + 0x44]
mov byte [esp + 0x420], 0xa
cmp eax, ebx
je 0x4d86cd
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x40], 0x53138c
jmp 0x4d89c7
xor ebx, ebx
mov dword [esp + 0x40], 0x534048
mov eax, dword [esp + 0x44]
mov byte [esp + 0x420], 0xb
cmp eax, ebx
je 0x4d86fd
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x54], 0x534048
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov eax, dword [edi + 8]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x428], 0xc
call fcn.004ecdd0
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x58]
mov edx, eax
dec eax
test edx, edx
je 0x4d874b
inc eax
mov edx, dword [edi]
add edi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x4d873e
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x13], 0
jle 0x4d899d
cmp edi, dword [esp + 0x1c]
je 0x4d87ab
mov eax, dword [esi + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x58]
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
inc eax
push eax
call fcn.004ecdd0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
mov dword [ecx + edx*4], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx*4]
mov eax, dword [eax + edi*4]
push edx
push eax
call fcn.00498cd0
add esp, 8
test al, al
je 0x4d87a9
mov byte [esp + 0x13], 1
xor ebx, ebx
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x4d875d
mov al, byte [esp + 0x13]
test al, al
je 0x4d899d
mov edi, 0x534048
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push 1
mov esi, dword [ecx + edx*4]
lea ecx, [esp + 0x34]
mov byte [esp + 0x428], 0xd
call fcn.004ecdd0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x54]
push ecx
push edx
mov dword [eax], esi
call fcn.00504c40
add esp, 8
lea ecx, [esp + 0x2a8]
call fcn.004b6f90
mov eax, dword [esp + 0x1c]
push ebx
cmp eax, ebx
mov byte [esp + 0x424], 0xe
push ebx
jne 0x4d88c8
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
call fcn.00498b90
fld qword [esp + 0x70]
fsub qword [eax]
sub esp, 8
lea ecx, [esp + 0x3c]
fsub qword [0x5315c8]
fstp qword [esp]
push ecx
call fcn.00499350
add esp, 0x14
lea edx, [esp + 0xa8]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.00488350
fadd qword [0x5354d8]
sub esp, 8
lea ecx, [esp + 0x2bc]
fstp qword [esp]
push ebx
push ebx
push 0x3ff00000
push ebx
call fcn.004b86c0
test al, al
je 0x4d8962
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xc4]
push eax
push ecx
lea eax, [esp + 0x38]
push edx
push eax
jmp 0x4d895a
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
call fcn.00498b90
fld qword [esp + 0x80]
fsub qword [eax + 0x10]
sub esp, 8
lea edx, [esp + 0x3c]
fadd qword [0x5315c8]
fstp qword [esp]
push edx
call fcn.00499350
add esp, 0x14
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x2c]
push eax
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.00488350
fadd qword [0x5354d8]
sub esp, 8
lea ecx, [esp + 0x2bc]
fstp qword [esp]
push ebx
push ebx
push 0xbff00000
push ebx
call fcn.004b86c0
test al, al
je 0x4d8962
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0xc4]
push ecx
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00499350
add esp, 0x14
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x420], 0xd
call fcn.004b7090
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x30]
mov byte [esp + 0x420], 0xf
cmp eax, ebx
je 0x4d8993
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x2c], 0x53138c
jmp 0x4d89a2
mov edi, 0x534048
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x58]
mov byte [esp + 0x420], 0x10
cmp eax, ebx
je 0x4d89bf
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x54], 0x53138c
lea ecx, [esp + 0x88]
mov byte [esp + 0x420], 3
call fcn.00519440
lea ecx, [esp + 0x68]
mov byte [esp + 0x420], 2
call fcn.00519440
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x420], 1
call fcn.004e39e0
lea ecx, [esp + 0x128]
mov byte [esp + 0x420], 0
call fcn.004e0610
lea ecx, [esp + 0xe8]
mov dword [esp + 0x420], 0xffffffff
call fcn.004886c0
mov ecx, dword [esp + 0x418]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret