Function at 0x4f6720
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 0x4f6798
mov ebx, eax
mov dword [esp + 0x4c], 0xffffcfff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], ecx
jmp 0x4f681b
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 0x4f67fc
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 0x4f6eee
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 0x4f6964
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.004f5a10
add esp, 0x1c
test eax, eax
je 0x4f695c
mov ecx, dword [esp + 0xc]
or ecx, 0x11000
mov dword [esp + 0xc], ecx
mov cx, word [eax + 0x10]
test cl, 1
je 0x4f6929
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 0x4f6915
lea ecx, [edi + edi*4]
mov dword [esp + 0x38], 1
lea edi, [ecx + ecx*4]
jmp 0x4f6936
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x4f6936
mov ecx, dword [ecx]
test ecx, ecx
je 0x4f6936
imul ecx, edi
mov edi, ecx
jmp 0x4f6936
test cl, 0x80
je 0x4f6936
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 0x4f689a
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], edi
mov eax, dword [ebx + 0x24]
cmp esi, eax
jne 0x4f698f
mov cl, byte [ebx + 0x2c]
test cl, cl
je 0x4f698f
mov eax, dword [esp + 0xc]
test eax, 0xc0000
jne 0x4f6aa7
or eax, 0x4000000
mov dword [esp + 0xc], eax
jmp 0x4f6aa7
mov cl, byte [ebx + 0x2e]
test cl, cl
jne 0x4f6aa7
cmp esi, eax
jne 0x4f69a3
or edi, 0xffffffff
jmp 0x4f69a9
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.004f5a10
add esp, 0x1c
test eax, eax
je 0x4f6aa7
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.004f5a10
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.004f5a10
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.004f7450
add esp, 0x50
test esi, esi
je 0x4f6a61
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 0x4f6a96
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.004f70d0
add esp, 0x20
test eax, eax
je 0x4f6af5
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.004f6f60
add esp, 0x18
test eax, eax
je 0x4f6b2e
test edi, 0x40000
jne 0x4f6b2e
or edi, 0x40022000
mov dword [esp + 0x64], 0
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4f6bc2
test edi, edi
je 0x4f6bc2
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 0x4f6b9a
mov edi, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [edi]
cmp ecx, 0x3f
jge 0x4f6b8c
mov eax, 1
xor edx, edx
call fcn.005302e0
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 0x4f6b61
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
or eax, ecx
jne 0x4f6bb6
mov edi, dword [esp + 0xc]
or edi, 0x800000
mov dword [esp + 0xc], edi
jmp 0x4f6bc2
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 0x4f6c58
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 0x4f6c58
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.0052d188
mov dword [esp + 0x24], eax
fdiv qword [esp + 0x80]
fcom qword [0x56a8d0]
fst qword [esp + 0x38]
fnstsw ax
test ah, 1
je 0x4f6c7c
fstp st(0)
fld qword [0x56a8d0]
fst qword [esp + 0x38]
test edi, 0x100f3000
jne 0x4f6ca8
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 0x4f6d05
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.004f6250
mov eax, dword [esp + 0x18]
add esp, 8
fstp qword [esp + 0x58]
test eax, eax
je 0x4f6cf7
mov eax, dword [esp + 0x28]
fld qword [esp + 0x38]
fild dword [esp + 0x24]
test eax, eax
je 0x4f6cff
fadd st(1)
jmp 0x4f6cff
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 0x4f6d3b
push esi
push edi
fstp st(0)
call fcn.004f6250
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x56a9c0]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4f6d65
push esi
push edi
fstp st(0)
call fcn.004f6250
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x56a9c0]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
fcom qword [0x56a9b8]
fnstsw ax
test ah, 0x41
jne 0x4f6e57
mov eax, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [eax + 0x18]
fnstsw ax
test ah, 0x41
je 0x4f6e57
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.004f47c0
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 0x4f6e42
test byte [esi + 2], 2
jne 0x4f6e31
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 0x4f6e31
cmp ecx, dword [esp + 0xc4]
jne 0x4f6e31
mov ax, word [esi]
test al, 0x83
je 0x4f6e0a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f6e02
dec eax
mov dword [esp + 0x18], eax
jmp 0x4f6e31
fmul qword [0x56a970]
jmp 0x4f6e31
test al, 0x3c
je 0x4f6e25
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f6e1d
dec eax
mov dword [esp + 0x14], eax
jmp 0x4f6e31
fmul qword [0x56a9b0]
jmp 0x4f6e31
cmp ax, 0x800
je 0x4f6e31
fmul qword [0x56a8b8]
fcom qword [0x56a9b8]
dec edx
add esi, 0x28
fnstsw ax
test ah, 0x41
je 0x4f6dc7
fcom qword [0x56a9b8]
fnstsw ax
test ah, 1
je 0x4f6e57
fstp st(0)
fld qword [0x56a9b8]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test esi, esi
je 0x4f6e67
test edx, edx
je 0x4f6ec3
mov ecx, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 1
jne 0x4f6e90
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 0x41
je 0x4f6ec3
fcom qword [ecx + 8]
fnstsw ax
test ah, 1
je 0x4f6ec3
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 0x4f6ec5
fstp st(0)
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x4f6eee
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 0x4f683f
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x4f6f0e
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x2c]
mov ecx, dword [edx]
test dword [ecx + 0x18], 0x1000000
je 0x4f6f11
or dword [esi], 0x2000000
jmp 0x4f6f11
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.004f6290
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.004f7330
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