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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x2c]
mov eax, dword [edx + 0x20]
push edi
mov dword [esp + 0x34], eax
mov ecx, 0xa
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi + 0x18], 0xa2879f2e
mov dword [esi + 0x1c], 0x547d42ae
mov cl, byte [edx + 0x1c]
mov eax, dword [edx + 0x3c]
not cl
and ecx, 0xff
mov dword [esp + 0x70], 0xffffffff
and ecx, 8
mov esi, 1
shl ecx, 4
or ecx, 3
test eax, eax
mov dword [esp + 0x7c], ecx
je 0x4e77c8
mov ebx, eax
mov dword [esp + 0x4c], 0xffffcfff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], ecx
jmp 0x4e784b
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xc8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x70]
mov dword [esp + 0xd0], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0xec], esi
mov dword [esp + 0xcc], ecx
mov byte [esp + 0xf4], 5
mov dword [esp + 0xd4], eax
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ecx
mov cl, byte [edx + 0x1d]
test cl, cl
jne 0x4e782c
mov edx, dword [eax + 0x10]
mov dword [esp + 0xdc], edx
lea ebx, [esp + 0xc8]
mov dword [esp + 0x4c], 0xfff0ffff
mov dword [esp + 0x48], 3
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4e7f1e
mov ecx, dword [ebp + 0x24]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x28]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x6c]
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x24]
xor esi, esi
mov edi, 1
cmp eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], 0x3ff00000
mov dword [esp + 0x14], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
jle 0x4e7994
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
push ecx
call fcn.004e6a40
add esp, 0x1c
test eax, eax
je 0x4e798c
mov ecx, dword [esp + 0xc]
or ecx, 0x11000
mov dword [esp + 0xc], ecx
mov cx, word [eax + 0x10]
test cl, 1
je 0x4e7959
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
or edx, 0x40000
mov dword [esp + 0xc], edx
mov dx, word [ecx + 2]
and edx, 0x800
cmp edx, 0x800
jne 0x4e7945
lea ecx, [edi + edi*4]
mov dword [esp + 0x38], 1
lea edi, [ecx + ecx*4]
jmp 0x4e7966
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x4e7966
mov ecx, dword [ecx]
test ecx, ecx
je 0x4e7966
imul ecx, edi
mov edi, ecx
jmp 0x4e7966
test cl, 0x80
je 0x4e7966
or dword [esp + 0xc], 0x80000
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov eax, dword [esp + 0x1c]
or eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
or eax, edx
inc esi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x24]
cmp esi, eax
jl 0x4e78ca
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], edi
mov eax, dword [ebx + 0x24]
cmp esi, eax
jne 0x4e79bf
mov cl, byte [ebx + 0x2c]
test cl, cl
je 0x4e79bf
mov eax, dword [esp + 0xc]
test eax, 0xc0000
jne 0x4e7ad7
or eax, 0x4000000
mov dword [esp + 0xc], eax
jmp 0x4e7ad7
mov cl, byte [ebx + 0x2e]
test cl, cl
jne 0x4e7ad7
cmp esi, eax
jne 0x4e79d3
or edi, 0xffffffff
jmp 0x4e79d9
mov eax, dword [ebx + 4]
mov edi, dword [eax + esi*4]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push 0x3c
push edx
mov edx, dword [ebp + 0xc]
push eax
push edi
push ecx
push edx
call fcn.004e6a40
add esp, 0x1c
test eax, eax
je 0x4e7ad7
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x38]
push 0x18
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push edi
push eax
push ecx
call fcn.004e6a40
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp + 0x18]
push edx
mov edx, dword [esp + 0x54]
push 0x24
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edi
push edx
push eax
call fcn.004e6a40
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0xb8]
mov edi, eax
mov eax, dword [ebp + 8]
push ecx
push esi
push edi
push edx
push ebx
push eax
call fcn.004e8480
add esp, 0x50
test esi, esi
je 0x4e7a91
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov esi, dword [esp + 0x1c]
or eax, 0x100000
or esi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
or eax, edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
test edi, edi
je 0x4e7ac6
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
mov ecx, dword [edi + 0x1c]
inc eax
or esi, 0x200000
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x18]
or edx, eax
mov eax, dword [esp + 0x20]
or eax, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x44]
or eax, 0x22000
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x74]
push edx
mov edx, dword [ebp + 0xc]
push edi
push esi
push eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.004e8100
add esp, 0x20
test eax, eax
je 0x4e7b25
mov edx, dword [esp + 0x74]
mov dword [esp + 0x68], 0
neg edx
sbb edx, edx
and edx, 0x2000000
or edx, 0x1022000
or edi, edx
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
push esi
push eax
mov eax, dword [ebp + 8]
push ecx
push ebx
push edx
push eax
call fcn.004e7f90
add esp, 0x18
test eax, eax
je 0x4e7b5e
test edi, 0x40000
jne 0x4e7b5e
or edi, 0x40022000
mov dword [esp + 0x64], 0
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4e7bf2
test edi, edi
je 0x4e7bf2
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x24]
test eax, eax
mov dword [esp + 0x50], edx
jle 0x4e7bca
mov edi, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [edi]
cmp ecx, 0x3f
jge 0x4e7bbc
mov eax, 1
xor edx, edx
call fcn.00511440
mov ecx, dword [esp + 0x50]
not eax
and ecx, eax
mov eax, dword [esp + 0x54]
not edx
and eax, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
add edi, 4
dec eax
mov dword [esp + 0x58], eax
jne 0x4e7b91
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
or eax, ecx
jne 0x4e7be6
mov edi, dword [esp + 0xc]
or edi, 0x800000
mov dword [esp + 0xc], edi
jmp 0x4e7bf2
mov edi, dword [esp + 0xc]
mov dword [esp + 0x28], 1
mov edx, dword [esp + 0x18]
mov dword [esp + 0x8c], 0
mov edx, dword [edx + esi*4]
mov eax, edx
imul eax, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x38]
fild qword [esp + 0x88]
test eax, eax
je 0x4e7c88
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa4], 0
fld st(0)
mov ecx, dword [ecx]
fadd st(0), st(0)
mov dword [esp + 0xa0], ecx
fild qword [esp + 0xa0]
fcompp
fnstsw ax
test ah, 1
je 0x4e7c88
shr ecx, 1
xor eax, eax
mov dword [esp + 0xb8], ecx
fstp st(0)
mov dword [esp + 0xbc], eax
mov dword [esp + 0x90], edx
fild qword [esp + 0xb8]
mov dword [esp + 0x94], eax
fild qword [esp + 0x90]
fdivr st(1)
call fcn.0050e6a8
mov dword [esp + 0x24], eax
fdiv qword [esp + 0x80]
fcom qword [0x5620a8]
fst qword [esp + 0x38]
fnstsw ax
test ah, 1
je 0x4e7cac
fstp st(0)
fld qword [0x5620a8]
fst qword [esp + 0x38]
test edi, 0x100f3000
jne 0x4e7cd8
mov edx, dword [esp + 0x18]
mov dword [esp + 0x9c], 0
mov eax, dword [edx]
shl eax, 2
mov dword [esp + 0x98], eax
fild qword [esp + 0x98]
jmp 0x4e7d35
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], 0
fstp st(0)
mov edx, dword [ecx]
sub esp, 8
mov dword [esp + 0xb0], edx
fild qword [esp + 0xb0]
fstp qword [esp]
call fcn.004e7280
mov eax, dword [esp + 0x18]
add esp, 8
fstp qword [esp + 0x58]
test eax, eax
je 0x4e7d27
mov eax, dword [esp + 0x28]
fld qword [esp + 0x38]
fild dword [esp + 0x24]
test eax, eax
je 0x4e7d2f
fadd st(1)
jmp 0x4e7d2f
fld qword [esp + 0x38]
fild dword [esp + 0x24]
fmul qword [esp + 0x58]
fadd st(1)
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x3c]
fstp qword [esp + 0x28]
mov edi, dword [esp + 0x38]
test eax, eax
je 0x4e7d6b
push esi
push edi
fstp st(0)
call fcn.004e7280
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x562198]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4e7d95
push esi
push edi
fstp st(0)
call fcn.004e7280
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x562198]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
fcom qword [0x562190]
fnstsw ax
test ah, 0x41
jne 0x4e7e87
mov eax, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [eax + 0x18]
fnstsw ax
test ah, 0x41
je 0x4e7e87
mov ecx, dword [esp + 0x44]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
push eax
push ecx
fstp st(0)
mov dword [esp + 0x1c], edx
call fcn.004e57f0
fld qword [esp + 0x40]
mov edi, eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xcc], edx
mov edx, dword [esi + 0x18]
add esp, 8
lea esi, [eax + 0x10]
test edx, edx
je 0x4e7e72
test byte [esi + 2], 2
jne 0x4e7e61
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0x1c]
and eax, ecx
mov ecx, dword [esi + 0x14]
and ecx, dword [ebp + 0x20]
cmp eax, edi
jne 0x4e7e61
cmp ecx, dword [esp + 0xc4]
jne 0x4e7e61
mov ax, word [esi]
test al, 0x83
je 0x4e7e3a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e7e32
dec eax
mov dword [esp + 0x18], eax
jmp 0x4e7e61
fmul qword [0x562148]
jmp 0x4e7e61
test al, 0x3c
je 0x4e7e55
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e7e4d
dec eax
mov dword [esp + 0x14], eax
jmp 0x4e7e61
fmul qword [0x562188]
jmp 0x4e7e61
cmp ax, 0x800
je 0x4e7e61
fmul qword [0x562090]
fcom qword [0x562190]
dec edx
add esi, 0x28
fnstsw ax
test ah, 0x41
je 0x4e7df7
fcom qword [0x562190]
fnstsw ax
test ah, 1
je 0x4e7e87
fstp st(0)
fld qword [0x562190]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test esi, esi
je 0x4e7e97
test edx, edx
je 0x4e7ef3
mov ecx, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 1
jne 0x4e7ec0
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 0x41
je 0x4e7ef3
fcom qword [ecx + 8]
fnstsw ax
test ah, 1
je 0x4e7ef3
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x4c]
fstp qword [ecx + 8]
and edx, eax
mov dword [ecx + 0x1c], edi
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], esi
jmp 0x4e7ef5
fstp st(0)
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x4e7f1e
mov ebx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x7c]
test ebx, ebx
mov dword [esp + 0x4c], 0xffffcfff
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], ebx
jne 0x4e786f
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x4e7f3e
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x2c]
mov ecx, dword [edx]
test dword [ecx + 0x18], 0x1000000
je 0x4e7f41
or dword [esi], 0x2000000
jmp 0x4e7f41
mov esi, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push esi
push eax
mov eax, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edi
push ebx
push ecx
push edx
push eax
call fcn.004e72c0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
push ebx
push ecx
push edx
push eax
call fcn.004e8360
mov ecx, dword [esp + 0x84]
mov eax, dword [esi]
add esp, 0x3c
or eax, ecx
mov dword [esi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret