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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push edi
mov dl, byte [ebp + 0x18]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xe0], eax
mov dword [ebx], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 4], 0x7fefffff
mov dword [ebx + 8], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0xc], 0x7fefffff
mov dword [ebx + 0xe4], ecx
mov dword [ebx + 0xe8], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x1c], 0x7fefffff
mov dword [ebx + 0x20], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x24], 0x7fefffff
mov dword [ebx + 0x28], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x2c], 0x7fefffff
mov dword [ebx + 0x38], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x3c], 0x7fefffff
mov dword [ebx + 0x30], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x34], 0x7fefffff
mov dword [ebx + 0x50], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x54], 0x7fefffff
mov dword [ebx + 0x40], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x44], 0x7fefffff
mov dword [ebx + 0x48], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x4c], 0x7fefffff
mov dword [ebx + 0x58], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x5c], 0x7fefffff
mov dword [ebx + 0x60], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x64], 0x7fefffff
mov dword [ebx + 0xa8], ecx
mov dword [ebx + 0xac], ecx
mov dword [ebx + 0xb0], ecx
mov dword [ebx + 0xb4], ecx
mov dword [ebx + 0xc8], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0xcc], 0x7fefffff
mov dword [ebx + 0xd0], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0xd4], 0x7fefffff
mov dword [ebx + 0xb8], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0xbc], 0x7fefffff
mov dword [ebx + 0xc0], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0xc4], 0x7fefffff
mov dword [ebx + 0xd8], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0xdc], 0x7fefffff
mov word [ebx + 0xed], cx
mov byte [ebx + 0xef], cl
mov dword [ebx + 0x68], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x6c], 0x7fefffff
mov dword [ebx + 0x70], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x74], 0x7fefffff
mov dword [ebx + 0x78], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x7c], 0x7fefffff
mov dword [ebx + 0x80], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x84], 0x7fefffff
mov dword [ebx + 0x88], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x8c], 0x7fefffff
mov dword [ebx + 0x90], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x94], 0x7fefffff
mov dword [ebx + 0x98], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x9c], 0x7fefffff
mov dword [ebx + 0xa0], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0xa4], 0x7fefffff
cmp eax, 1
jl 0x4f3149
test dl, dl
je 0x4f2eb3
push esi
push eax
call fcn.0040d7cc
test al, al
je 0x4f3149
push esi
push 1
call fcn.0040d401
fstp qword [ebx]
mov ecx, dword [0x5cb670]
mov eax, dword [ecx + 4]
mov dword [ebx + 0xe4], eax
push esi
push dword [ebp + 0xc]
call fcn.0040d401
fstp qword [ebx + 8]
mov ecx, dword [0x5cb670]
mov eax, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [ebx + 0xe8], eax
cmp byte [ebp + 0x14], 0
je 0x4f2f61
fld qword [0x5bdc70]
fcomp qword [ebx]
wait
fnstsw ax
test ah, 1
je 0x4f3149
mov edi, 1
jmp 0x4f2f5c
rol dword [0x5cb780], 1
test byte [0x5cb780], 1
je 0x4f2f30
rol dword [0x5cb784], 1
test byte [0x5cb784], 1
je 0x4f2f30
call fcn.0040f884
jmp 0x4f2f32
mov al, 0
test al, al
jne 0x4f3149
push esi
push edi
push esi
push edi
call fcn.0040d401
sub esp, 8
fstp qword [esp]
call fcn.0042c8d3
sub esp, 8
fstp qword [esp]
call fcn.0040d42c
inc edi
jo 0x4f2f61
cmp edi, dword [ebp + 0xc]
jle 0x4f2f0b
mov al, byte [ebp + 0x14]
mov byte [ebx + 0xf0], al
push esi
push dword [ebp + 0xc]
push 0x40490000
push 0
lea eax, [ebx + 0x50]
push eax
call fcn.0043d45b
push esi
push 0x5f
push 0x40490000
push 0
push dword [ebp + 0xc]
push 0
lea eax, [ebx + 0x58]
push eax
add eax, 8
push eax
call fcn.0043da1a
push esi
push dword [ebp + 0xc]
push 0x40040000
push 0
lea eax, [ebx + 0x68]
push eax
call fcn.0043d45b
push esi
push dword [ebp + 0xc]
push 0x40140000
push 0
lea eax, [ebx + 0x78]
push eax
call fcn.0043d45b
push esi
push dword [ebp + 0xc]
push 0x40240000
push 0
lea eax, [ebx + 0x98]
push eax
call fcn.0043d45b
push esi
push dword [ebp + 0xc]
push 0x40390000
push 0
lea eax, [ebx + 0x88]
push eax
call fcn.0043d45b
push esi
push dword [ebp + 0xc]
push 0x4052c000
push 0
lea eax, [ebx + 0x90]
push eax
call fcn.0043d45b
push esi
push dword [ebp + 0xc]
push 0x40568000
push 0
lea eax, [ebx + 0xa0]
push eax
call fcn.0043d45b
push esi
push dword [ebp + 0xc]
push 0x4057c000
push 0
lea eax, [ebx + 0x80]
push eax
call fcn.0043d45b
push esi
push dword [ebp + 0xc]
push 0x40586000
push 0
lea eax, [ebx + 0x70]
push eax
call fcn.0043d45b
fild dword [ebp + 0xc]
fst qword [ebp - 8]
fsub dword [0x5bdc40]
fstp qword [ebp - 0x10]
cmp dword [ebp + 0xc], 1
jne 0x4f306c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x3ff00000
xor edi, edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
inc edi
jmp 0x4f30b6
rol dword [0x5cb780], 1
test byte [0x5cb780], 1
je 0x4f309c
rol dword [0x5cb784], 1
test byte [0x5cb784], 1
je 0x4f309c
call fcn.0040f884
jmp 0x4f309e
mov al, 0
test al, al
jne 0x4f3149
push esi
push edi
call fcn.0040d401
fadd qword [ebx + 0x10]
fstp qword [ebx + 0x10]
inc edi
jo 0x4f30bb
cmp edi, dword [ebp + 0xc]
jle 0x4f3077
fld qword [ebx + 0x10]
fdiv qword [ebp - 8]
fstp qword [ebx + 0x18]
cmp dword [ebp + 0xc], 2
jge 0x4f30d6
mov byte [ebx + 0xed], 0
jmp 0x4f329c
fld qword [ebx]
fcomp qword [ebx + 8]
wait
fnstsw ax
sahf
mov edi, 0
jne 0x4f310c
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], edi
fld qword [ebx + 0x18]
fst qword [ebx + 0x40]
fstp qword [ebx + 0x48]
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], edi
jmp 0x4f329c
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov eax, dword [ebx + 0xe0]
mov dword [ebp - 0x2c], eax
inc edi
jmp 0x4f3197
rol dword [0x5cb780], 1
test byte [0x5cb780], 1
je 0x4f3143
rol dword [0x5cb784], 1
test byte [0x5cb784], 1
je 0x4f3143
call fcn.0040f884
jmp 0x4f3145
mov al, 0
test al, al
je 0x4f3150
mov al, 0
jmp 0x4f329e
push esi
push edi
call fcn.0040d401
fsub qword [ebx + 0x18]
fst qword [ebp - 0x18]
fmul qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebx + 0x10]
fadd qword [ebp - 0x20]
fstp qword [ebx + 0x10]
fld qword [ebx + 0xa8]
fld qword [ebp - 0x20]
fmul qword [ebp - 0x18]
faddp st(1)
fstp qword [ebx + 0xa8]
fld qword [ebx + 0xb0]
fld qword [ebp - 0x20]
fmul qword [ebp - 0x20]
faddp st(1)
fstp qword [ebx + 0xb0]
inc edi
jo 0x4f319c
cmp edi, dword [ebp - 0x2c]
jle 0x4f311e
mov byte [ebx + 0xed], 1
fld qword [ebx + 0x10]
fdiv qword [ebp - 0x10]
fstp qword [ebx + 0x20]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.0042c7b4
fstp qword [ebx + 0x28]
fld qword [ebx + 0x28]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042c7b4
fdivp st(1)
fstp qword [ebx + 0x38]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call fcn.0042d29c
test al, al
jne 0x4f31e5
fld qword [ebx + 0x28]
fdiv qword [ebx + 0x18]
fstp qword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
and eax, 0x7fffffff
or eax, dword [ebx + 0x28]
je 0x4f329c
mov eax, dword [ebp + 0xc]
dec eax
push eax
call fcn.004aa235
fstp qword [ebp - 0x28]
fld qword [ebx + 0x18]
fld qword [ebx + 0x38]
fmul qword [ebp - 0x28]
fsubp st(1)
fstp qword [ebx + 0x40]
fld qword [ebx + 0x18]
fld qword [ebx + 0x38]
fmul qword [ebp - 0x28]
faddp st(1)
fstp qword [ebx + 0x48]
push ebx
call fcn.004f275e
push ebx
call fcn.004f2a35
cmp byte [ebx + 0xee], 0
je 0x4f329c
cmp byte [ebx + 0xef], 0
je 0x4f329c
push dword [ebx + 0xe0]
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
push dword [ebx + 0xbc]
push dword [ebx + 0xb8]
push dword [ebx + 0xc4]
push dword [ebx + 0xc0]
lea eax, [ebx + 0xd8]
push eax
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
push 0x107
sub eax, 0x210
push eax
call fcn.004e676a
test al, al
jne 0x4f329c
mov dword [ebx + 0xd8], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0xdc], 0x7fefffff
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x14