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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov ebx, ecx
je 0x4957b3
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
jmp 0x4957be
test esi, esi
je 0x495d89
mov eax, dword [esi + 8]
test eax, eax
je 0x495d89
test edi, edi
je 0x4957d5
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
jmp 0x4957e0
test esi, esi
je 0x495d89
mov eax, dword [esi + 0xc]
test eax, eax
je 0x495d89
test edi, edi
je 0x4957f7
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
jmp 0x495802
test esi, esi
je 0x495800
mov eax, dword [esi + 8]
jmp 0x495802
xor eax, eax
mov esi, dword [ebp + 0x10]
fld1
cmp eax, dword [esi + 8]
fldz
mov edx, dword [ebp + 0x14]
jne 0x4958fd
mov ecx, dword [edx + 8]
sub ecx, dword [edx]
test edi, edi
mov dword [esp + 0x14], ecx
je 0x49583c
mov eax, dword [edi]
fstp st(0)
mov edx, dword [eax + 8]
fstp st(0)
mov ecx, edi
call edx
fld1
fldz
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
jmp 0x49584a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x495848
mov eax, dword [eax + 8]
jmp 0x49584a
xor eax, eax
cmp ecx, eax
jne 0x4958fd
test edi, edi
je 0x49586c
mov eax, dword [edi]
fstp st(0)
mov edx, dword [eax + 0xc]
fstp st(0)
mov ecx, edi
call edx
fld1
fldz
mov edx, dword [ebp + 0x14]
jmp 0x49587a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x495878
mov eax, dword [eax + 0xc]
jmp 0x49587a
xor eax, eax
cmp eax, dword [esi + 0xc]
jne 0x4958fd
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 4]
test edi, edi
mov dword [esp + 0x14], ecx
je 0x4958a4
mov eax, dword [edi]
fstp st(0)
mov edx, dword [eax + 0xc]
fstp st(0)
mov ecx, edi
call edx
fld1
fldz
mov ecx, dword [esp + 0x14]
jmp 0x4958b2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4958b0
mov eax, dword [eax + 0xc]
jmp 0x4958b2
xor eax, eax
cmp ecx, eax
jne 0x4958fd
fcom dword [ebp + 0x18]
fnstsw ax
test ah, 0x44
jp 0x4958fd
fcom dword [ebp + 0x1c]
fnstsw ax
test ah, 0x44
jp 0x4958fd
fld st(0)
fld dword [ebp + 0x20]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x4958e6
fld st(1)
fcomp dword [ebp + 0x24]
fnstsw ax
test ah, 0x44
jnp 0x495925
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jp 0x4958fd
fld st(1)
fcomp dword [ebp + 0x24]
fnstsw ax
test ah, 0x44
jnp 0x495927
cmp byte [ebx + 0x34], 0
je 0x495abd
test edi, edi
mov edx, dword [esi + 8]
mov dword [esp + 0x14], edx
je 0x495981
mov eax, dword [edi]
fstp st(0)
mov edx, dword [eax + 8]
fstp st(0)
mov ecx, edi
call edx
fld1
fldz
jmp 0x49598f
fstp st(0)
fld st(1)
fcomp dword [ebx + 0x2c]
fnstsw ax
test ah, 0x44
jp 0x4958fd
fld st(1)
fcomp dword [ebx + 0x30]
fnstsw ax
test ah, 0x44
jp 0x4958fd
or ecx, 0xffffffff
fstp st(0)
sub esp, 0x10
fstp st(0)
mov eax, esp
mov dword [eax], ecx
or edx, ecx
mov dword [eax + 4], edx
or edi, ecx
mov dword [eax + 8], edi
or ebx, ecx
mov dword [eax + 0xc], ebx
lea eax, [ebp + 8]
push eax
mov eax, esi
call fcn.0045b130
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x495976
mov cx, word [esi + 0x16]
mov word [eax + 0x16], cx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49598d
mov eax, dword [eax + 8]
jmp 0x49598f
xor eax, eax
add eax, eax
cmp dword [esp + 0x14], eax
jb 0x495abd
test edi, edi
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
je 0x4959b9
mov edx, dword [edi]
fstp st(0)
mov eax, dword [edx + 0xc]
fstp st(0)
mov ecx, edi
call eax
fld1
fldz
jmp 0x4959c7
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4959c5
mov eax, dword [eax + 0xc]
jmp 0x4959c7
xor eax, eax
lea ecx, [eax + eax]
cmp dword [esp + 0x14], ecx
jb 0x495abd
mov eax, dword [esi + 8]
fstp st(0)
mov ecx, dword [esi + 0xc]
fstp st(0)
shr eax, 1
shr ecx, 1
test eax, eax
jne 0x4959eb
mov eax, 1
test ecx, ecx
jne 0x4959f4
mov ecx, 1
xor edx, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
mov word [esp + 0x44], 1
mov word [esp + 0x46], dx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call fcn.00458300
lea edx, [esp + 0x30]
push esi
push edx
call fcn.00495da0
fld dword [ebp + 0x24]
fld qword [0x567de8]
mov ecx, dword [ebp + 0x14]
fmul st(1), st(0)
mov eax, dword [ebx]
fxch st(1)
sub esp, 8
lea edx, [esp + 0x40]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 0xc]
fmul dword [ebp + 0x20]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 8]
fld dword [ebp + 0x1c]
fld qword [0x54cdc8]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fmul dword [ebp + 0x18]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [eax + 0x24]
push ecx
push edi
mov ecx, ebx
call edx
lea esi, [esp + 0x30]
mov edi, eax
call fcn.00458440
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebx + 0x28]
cmp eax, 9
je 0x495bc1
cmp eax, 0xa
je 0x495bc1
mov al, byte [ebx + 0x34]
fstp st(0)
fstp st(0)
sub esp, 0x10
fld dword [ebp + 0x24]
mov byte [ebx + 0x34], 0
mov ecx, dword [esi + 8]
fstp dword [esp + 0xc]
fld dword [ebp + 0x20]
mov edx, dword [esi + 0xc]
fstp dword [esp + 8]
mov dword [esp + 0x38], ecx
fld dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
fstp dword [esp + 4]
mov dword [esp + 0x3c], edx
fld dword [ebp + 0x18]
mov byte [esp + 0x2c], al
fstp dword [esp]
push ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push ecx
push edi
mov ecx, ebx
call edx
test eax, eax
je 0x495b42
mov cl, byte [esp + 0x1c]
mov byte [ebx + 0x34], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
xor eax, eax
push ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call fcn.004935a0
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x10]
ja 0x495b8b
cmp dword [ebx + 0x24], 0
jne 0x495bac
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
imul eax, edi
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
lea eax, [ecx + eax*4]
push 0
push eax
mov ecx, ebx
call edx
add edi, 1
cmp edi, dword [esp + 0x10]
jbe 0x495b64
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x495b9a
mov cx, word [esi + 0x16]
mov word [eax + 0x16], cx
mov dl, byte [esp + 0x1c]
mov byte [ebx + 0x34], dl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov al, byte [esp + 0x1c]
mov byte [ebx + 0x34], al
mov eax, 0xf4242
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
fxch st(1)
mov byte [esp + 0x54], 1
fst dword [esp + 0x30]
fst dword [esp + 0x40]
fst dword [esp + 0x50]
fxch st(1)
fst dword [esp + 0x34]
fst dword [esp + 0x38]
fst dword [esp + 0x3c]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
fst dword [esp + 0x4c]
fcom dword [ebp + 0x20]
fnstsw ax
test ah, 0x44
jp 0x495c44
test edi, edi
je 0x495c0f
mov eax, dword [edi]
fstp st(0)
mov edx, dword [eax + 8]
fstp st(0)
mov ecx, edi
call edx
fld1
fldz
jmp 0x495c1d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x495c1b
mov eax, dword [eax + 8]
jmp 0x495c1d
xor eax, eax
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x495c2f
fadd dword [0x567d50]
mov eax, dword [esi + 8]
fild dword [esi + 8]
test eax, eax
jge 0x495c3f
fadd dword [0x567d50]
fdivp st(1)
fstp dword [ebp + 0x20]
fcom dword [ebp + 0x24]
fnstsw ax
test ah, 0x44
jp 0x495c9a
test edi, edi
je 0x495c65
mov edx, dword [edi]
fstp st(0)
mov eax, dword [edx + 0xc]
fstp st(0)
mov ecx, edi
call eax
fld1
fldz
jmp 0x495c73
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x495c71
mov eax, dword [eax + 0xc]
jmp 0x495c73
xor eax, eax
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x495c85
fadd dword [0x567d50]
mov ecx, dword [esi + 0xc]
fild dword [esi + 0xc]
test ecx, ecx
jge 0x495c95
fadd dword [0x567d50]
fdivp st(1)
fstp dword [ebp + 0x24]
fxch st(1)
lea ecx, [esp + 0x58]
fst dword [esp + 0x58]
lea eax, [esp + 0x30]
fxch st(1)
mov byte [esp + 0x7c], 0
fst dword [esp + 0x5c]
fld dword [ebp + 0x18]
fchs
fstp dword [esp + 0x60]
fst dword [esp + 0x64]
fxch st(1)
fst dword [esp + 0x68]
fld dword [ebp + 0x1c]
fchs
fstp dword [esp + 0x6c]
fxch st(1)
fst dword [esp + 0x70]
fstp dword [esp + 0x74]
fstp dword [esp + 0x78]
call fcn.004961a0
fld dword [ebp + 0x20]
lea ecx, [esp + 0x58]
fld1
mov byte [esp + 0x7c], 0
fld st(0)
fdivrp st(2)
fxch st(1)
fstp dword [esp + 0x58]
fldz
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fst dword [esp + 0x64]
fld dword [ebp + 0x24]
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x68]
fst dword [esp + 0x6c]
fst dword [esp + 0x70]
fstp dword [esp + 0x74]
fld1
fstp dword [esp + 0x78]
call fcn.004961a0
cmp dword [ebp + 0xc], 0
je 0x495d89
cmp dword [ebx + 0x28], 0xa
mov edi, dword [ebp + 0x14]
jne 0x495d5a
mov edx, eax
mov eax, dword [ebp + 0xc]
push edx
push esi
push eax
call fcn.00498410
mov cx, word [esi + 0x16]
mov edx, dword [ebp + 0xc]
mov word [edx + 0x16], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov edx, dword [ebp + 0xc]
push 0x100
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
push esi
push edx
call fcn.00497c60
mov cx, word [esi + 0x16]
mov edx, dword [ebp + 0xc]
add esp, 0x18
mov word [edx + 0x16], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x20