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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
push edi
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x41befe
cmp dword [esi + 4], 0
je 0x41befe
xor eax, eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov eax, dword [0x9f43ec]
mov dword [esp + 0x50], 0
mov dword [esp + 0x9c], 0x14
test eax, eax
je 0x41b874
call fcn.00459840
push 0
mov edi, eax
call fcn.00658a01
add esp, 4
mov dword [esp + 0x50], edi
test edi, edi
je 0x41b867
mov dword [esp + 0xa0], edi
jmp 0x41b884
mov dword [esp + 0xa0], str.filename
jmp 0x41b884
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov dword [esp + 0xa0], eax
cmp dword [esi + 0xb0], 0
lea eax, [esi + 0xb0]
mov edi, 1
mov dword [esp + 0x5c], edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], eax
jne 0x41b905
mov ecx, dword [esi + 0x14]
xor eax, eax
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x41bef1
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x1c], ecx
lea edi, [ecx + 4]
mov edx, eax
jmp 0x41b8d8
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [edi]
cmp ebx, dword [ecx + eax*8]
mov ecx, dword [esi + 0x20]
lea ecx, [ecx + eax*8]
jae 0x41b8ec
mov ebx, dword [ecx]
sub ebx, dword [ecx + 4]
jmp 0x41b8f1
mov ebx, dword [ecx + 4]
sub ebx, dword [ecx]
inc eax
lea edx, [edx + ebx + 1]
add edi, 8
mov dword [esp + 0x40], edx
cmp eax, dword [esp + 0x38]
jb 0x41b8d0
jmp 0x41b963
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
cmp eax, edi
jl 0x41bef1
mov eax, dword [esp + 0x30]
push edi
push eax
lea ebx, [esp + 0xe8]
call fcn.0041b750
mov ecx, eax
fld qword [ecx + 0x10]
add esp, 8
fldz
fld st(0)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x41b951
fld qword [ecx + 0x18]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x41b953
inc dword [esp + 0x40]
jmp 0x41b953
fstp st(0)
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
inc edi
call eax
cmp edi, eax
jle 0x41b916
cmp dword [esp + 0x40], 0
je 0x41bef1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41b982
mov eax, dword [esp + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
push 1
call edx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov esi, dword [esi]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_CreateDCW]
mov edi, eax
mov dword [esp + 0x54], edi
test edi, edi
jne 0x41b9be
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x50]
push eax
call fcn.00658a01
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x9c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jle 0x41bec6
push 1
push edi
call dword [sym.imp.GDI32.dll_SetMapMode]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6f
push edi
call esi
push 0x6e
push edi
mov dword [esp + 0x54], eax
call esi
push 0xa
push edi
mov dword [esp + 0x78], eax
call esi
push 8
push edi
mov dword [esp + 0x74], eax
call esi
push 0x71
push edi
mov dword [esp + 0x70], eax
call esi
push 0x70
push edi
mov dword [esp + 0x60], eax
call esi
push 0x5a
push edi
mov dword [esp + 0xd8], eax
call esi
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
fstp qword [esp + 0x28]
call edx
fdivr qword [esp + 0x28]
push 0x58
push edi
fstp dword [esp + 0x28]
call esi
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
fstp qword [esp + 0x28]
call edx
fdivr qword [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
fld dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x20]
je 0x41ba7e
lea eax, [esp + 0x24]
fld dword [eax]
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x70], eax
fstp dword [esp + 0x60]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
setl byte [esp + 0xf]
test eax, eax
je 0x41baaf
test byte [eax + 0x48], 1
je 0x41baaf
mov edx, 1
cmp dx, word [eax + 0x4c]
sete byte [esp + 0xf]
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jbe 0x41bf07
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov esi, 1
mov ecx, ebx
mov dword [esp + 0x58], esi
call eax
cmp eax, esi
jl 0x41bebf
mov ecx, dword [esp + 0x30]
push esi
push ecx
lea ebx, [esp + 0xb8]
call fcn.0041b750
fld qword [esp + 0xc8]
fldz
add esp, 8
fld st(0)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x41bea5
fld qword [esp + 0xc8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x41bea7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41bb30
mov eax, dword [esp + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
mov eax, dword [esp + 0x60]
push eax
call edx
push edi
call dword [sym.imp.GDI32.dll_StartPage]
fld qword [esp + 0xc0]
fstp dword [esp + 0x44]
fld qword [esp + 0xc8]
fstp dword [esp + 0x48]
fild dword [esp + 0x6c]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fdiv dword [esp + 0x48]
fstp dword [esp + 0x20]
fild dword [esp + 0x68]
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fdiv dword [esp + 0x44]
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
fld dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x20]
je 0x41bb8e
lea eax, [esp + 0x24]
fld dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34c]
fstp dword [esp + 0x10]
cmp eax, 1
jne 0x41bbbf
fld dword [esp + 0x10]
fld dword [esp + 0x60]
fcompp
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x10]
je 0x41bbbb
lea eax, [esp + 0x60]
fld dword [eax]
jmp 0x41bbc7
test eax, eax
jne 0x41bbcb
fld dword [esp + 0x60]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp dword [ecx], 0
mov dword [esp + 0x20], 0
jbe 0x41be76
fld dword [esp + 0x10]
mov edi, dword [ebp + 8]
mov dword [esp + 0x4c], 0
mov esi, dword [esp + 0x4c]
add esi, dword [edi + 0xbc]
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x58]
jne 0x41be5a
fld qword [esi + 8]
add esi, 8
fsub qword [esp + 0xb0]
mov dword [esp + 0x14], esi
fmul st(1)
call fcn.0065d070
fld qword [esi + 8]
fsub qword [esp + 0xb8]
mov dword [esp + 0x28], eax
fmul st(1)
call fcn.0065d070
cmp dword [edi + 0x34c], 0
mov dword [esp + 0x2c], eax
je 0x41bc77
fld dword [esp + 0x64]
fld dword [esp + 0x44]
fmul st(2)
fsubp st(1)
call fcn.0065d070
fld dword [esp + 0x38]
fld dword [esp + 0x48]
cdq
fmul st(2)
sub eax, edx
sar eax, 1
add dword [esp + 0x28], eax
fsubp st(1)
call fcn.0065d070
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x2c], eax
cmp byte [edi + 0x350], 0
mov byte [esp + 0xf], 0
jne 0x41bd21
fld st(0)
fmul qword [esi + 0x10]
call fcn.0065d070
fld st(0)
fmul qword [esi + 0x18]
mov ebx, eax
call fcn.0065d070
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41bcab
lea ecx, [edi + 0x18]
jmp 0x41bcad
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x354]
mov edx, dword [esp + 0x38]
mov edx, dword [edx]
mov edx, dword [edx + 0x1c]
push 1
push esi
mov esi, dword [esp + 0x34]
push ecx
push ecx
mov ecx, dword [esp + 0x30]
fstp dword [esp]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [esp + 0x54]
mov dword [ecx + 4], esi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x5c]
push eax
call edx
test edi, edi
je 0x41be53
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x41bd15
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x18], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41be53
mov dword [esp + 0x24], 1
jmp 0x41bd34
fld dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41bd40
lea edx, [esi + 0x18]
jmp 0x41bd42
xor edx, edx
movsx ebx, word [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xbc]
fidiv dword [esp + 0x1c]
add eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x18]
push 1
push edx
mov edx, dword [edi + 0x354]
push edx
push ecx
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x18]
call edx
mov edi, eax
test esi, esi
je 0x41bdbb
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x41bdb4
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x18], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x41be1e
cmp dword [edi], 0
je 0x41be02
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 8]
mov ecx, eax
mov dword [esp + 0x74], ecx
mov ecx, ebx
imul ebx, eax
imul ecx, dword [edi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x64]
call fcn.0041b470
mov byte [esp + 0xf], al
mov eax, dword [edi]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.006590fa
add esp, 4
cmp byte [esp + 0xf], 0
mov edx, dword [esp + 0x24]
lea eax, [edx + edx]
movzx eax, ax
mov dword [esp + 0x24], eax
jne 0x41be53
cmp ax, 0x20
jge 0x41be53
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41bd30
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x41bd30
fld dword [esp + 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x4c], 0x28
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [ecx]
jb 0x41bbef
fstp st(0)
mov esi, dword [esp + 0x54]
push esi
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x41bee3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41be97
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x41bee3
inc dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
jmp 0x41bea7
fstp st(0)
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
inc esi
mov dword [esp + 0x58], esi
call eax
cmp esi, eax
jle 0x41bad6
push edi
call dword [sym.imp.GDI32.dll_EndDoc]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x50]
push edx
call fcn.00658a01
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.GDI32.dll_AbortDoc]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00658a01
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [esp + 0x1c], esi
cmp dword [ecx + 0x14], esi
jbe 0x41c554
mov eax, dword [ecx + 0x20]
mov edx, dword [eax + esi*8]
cmp dword [eax + esi*8 + 4], edx
mov edx, dword [ecx + 0x20]
mov ebx, dword [edx + esi*8]
lea eax, [eax + esi*8]
sbb eax, eax
lea edx, [edx + esi*8]
mov edx, dword [edx + 4]
and eax, 0xfffffffe
inc eax
add edx, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x30], ebx
cmp ebx, edx
je 0x41c546
mov edx, dword [ecx + 0x348]
cmp edx, 1
jne 0x41bf5a
test dl, bl
jne 0x41c52f
cmp edx, 2
jne 0x41bf68
test bl, 1
je 0x41c52f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41bf7f
mov edx, dword [esp + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x60]
push edx
call eax
push edi
call dword [sym.imp.GDI32.dll_StartPage]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push ebx
lea eax, [esp + 0xe4]
push eax
call edx
fld qword [eax + 0x18]
fld qword [eax + 0x10]
xor ecx, ecx
fstp dword [esp + 0x28]
fstp dword [esp + 0x2c]
fld dword [esp + 0x28]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x41bfda
fxch st(1)
mov ecx, 0x5a
fstp dword [esp + 0x14]
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
fstp dword [esp + 0x2c]
fld dword [esp + 0x28]
fld dword [esp + 0x2c]
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb4
sub ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x10e
cmp byte [esp + 0xf], 0
mov dword [esp + 0x24], ecx
jne 0x41c02d
lea eax, [ecx + 0x5a]
fxch st(1)
cdq
fstp dword [esp + 0x14]
mov ecx, 0x168
idiv ecx
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
fstp dword [esp + 0x2c]
mov dword [esp + 0x24], edx
jmp 0x41c031
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0xd0]
fld dword [esp + 0x60]
mov ebx, dword [esp + 0x58]
fstp dword [esp + 0x10]
mov edx, dword [ebp + 8]
neg eax
neg ebx
cmp dword [edx + 0x34c], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
je 0x41c30a
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
push 1
push ecx
lea edx, [esp + 0xe8]
push edx
mov ecx, esi
call eax
fld1
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x3c]
fstp dword [esp]
push ecx
sub esp, 0x20
mov edi, esp
mov ecx, 8
lea esi, [esp + 0x110]
lea eax, [esp + 0x130]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
push eax
call edx
lea ecx, [esp + 0x38]
fld qword [eax]
fstp dword [esp + 0x8c]
fld qword [eax + 8]
fstp dword [esp + 0x90]
fld qword [eax + 0x10]
fstp dword [esp + 0x94]
fld qword [eax + 0x18]
fstp dword [esp + 0x98]
fild dword [esp + 0x4c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
fld dword [esp + 0x2c]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fild dword [esp + 0x70]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
fdiv dword [esp + 0x28]
fstp dword [esp + 0x64]
fild dword [esp + 0x6c]
fld dword [esp + 0x98]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0x68]
fld dword [esp + 0x94]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x38]
fld dword [esp + 0x64]
fcompp
fnstsw ax
test ah, 0x41
je 0x41c150
lea ecx, [esp + 0x64]
fld dword [ecx]
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
je 0x41c163
lea ecx, [esp + 0x20]
fld dword [ecx]
fld dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 0x41
mov eax, ecx
je 0x41c178
lea eax, [esp + 0x10]
fld dword [eax]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34c], 1
fstp dword [esp + 0x10]
jne 0x41c1a7
fld dword [esp + 0x60]
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41c1ab
fstp st(0)
fld dword [esp + 0x60]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x28]
fsubp st(4)
fxch st(3)
call fcn.0065d070
fld st(2)
mov esi, dword [esp + 0x44]
fmulp st(4)
cdq
fxch st(4)
sub eax, edx
sar eax, 1
fsubrp st(3)
add esi, eax
fxch st(2)
mov dword [esp + 0x44], esi
call fcn.0065d070
mov ecx, dword [esp + 0xd0]
add esi, ecx
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
fld dword [esp + 0x8c]
mov esi, dword [esp + 0x58]
fmul st(2)
cdq
sub eax, edx
sar eax, 1
faddp st(1)
add ebx, eax
lea edx, [esi + ebx]
mov dword [esp + 0x14], edx
fstp dword [esp + 0x7c]
mov dword [esp + 0x48], ebx
fld dword [esp + 0x90]
fmul st(1)
fiadd dword [esp + 0x14]
fstp dword [esp + 0x80]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x84]
fmul st(1)
fstp dword [esp + 0x88]
fild dword [esp + 0xd0]
fstp dword [esp + 0x14]
fld dword [esp + 0x7c]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x41c261
fsubrp st(1)
call fcn.0065d070
add dword [esp + 0x44], eax
jmp 0x41c2a2
mov eax, dword [esp + 0x68]
fstp st(0)
fadd dword [esp + 0x84]
add eax, ecx
mov dword [esp + 0x14], eax
fstp dword [esp + 0x38]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x38]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x41c29e
fsubp st(1)
call fcn.0065d070
sub dword [esp + 0x44], eax
jmp 0x41c2a2
fstp st(1)
fstp st(0)
fild dword [esp + 0x58]
fstp dword [esp + 0x14]
fld dword [esp + 0x80]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x41c2cd
fsubrp st(1)
call fcn.0065d070
add ebx, eax
mov dword [esp + 0x48], ebx
jmp 0x41c314
add esi, dword [esp + 0x6c]
fstp st(0)
fadd dword [esp + 0x88]
mov dword [esp + 0x14], esi
fstp dword [esp + 0x38]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x38]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x41c310
fsubp st(1)
call fcn.0065d070
sub ebx, eax
mov dword [esp + 0x48], ebx
jmp 0x41c314
fld dword [esp + 0x10]
jmp 0x41c314
fstp st(1)
fstp st(0)
mov edx, dword [ebp + 8]
cmp byte [edx + 0x350], 0
mov byte [esp + 0x3f], 0
jne 0x41c3e3
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov edx, ebx
cmp edi, ecx
jle 0x41c341
mov edi, ecx
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
cmp ebx, esi
jle 0x41c34d
mov edx, esi
mov eax, ebx
mov esi, dword [ebp + 0x10]
sub ecx, edi
sub eax, edx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
test esi, esi
je 0x41c36b
lea eax, [esi + 0x18]
jmp 0x41c36d
xor eax, eax
mov ebx, dword [esp + 0x34]
mov ecx, dword [ebx]
push eax
mov eax, dword [esp + 0x28]
push 1
push 0
push eax
mov eax, dword [esp + 0x40]
push ecx
fstp dword [esp]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x7c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xe0]
mov dword [eax + 8], edx
mov edx, dword [esp + 0xe4]
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
push edi
mov ecx, ebx
call eax
test esi, esi
je 0x41c4fb
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x41c3d7
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x18], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41c4fb
mov dword [esp + 0x20], 1
jmp 0x41c3f4
fld dword [esp + 0x10]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x41c400
lea eax, [ebx + 0x18]
jmp 0x41c402
xor eax, eax
movsx esi, word [esp + 0x20]
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x34]
fidiv dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push eax
mov eax, dword [esp + 0x28]
push 1
push 0
push eax
mov eax, dword [esp + 0x40]
push ecx
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp]
push eax
call edx
mov edi, eax
test ebx, ebx
je 0x41c45f
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x41c458
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebx + 0x18], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x41c4c2
cmp dword [edi], 0
je 0x41c4a6
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
mov ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, esi
imul esi, eax
imul ecx, dword [edi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x64]
call fcn.0041b470
mov byte [esp + 0x3f], al
mov eax, dword [edi]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.006590fa
add esp, 4
cmp byte [esp + 0x3f], 0
mov edx, dword [esp + 0x20]
lea eax, [edx + edx]
movzx eax, ax
mov dword [esp + 0x20], eax
jne 0x41c4f7
cmp ax, 0x20
jge 0x41c4f7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41c3f0
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x41c3f0
mov edi, dword [esp + 0x54]
push edi
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x41c578
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41c518
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x41c578
inc dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov edx, dword [edx + esi*8 + 4]
add ebx, eax
add edx, eax
mov dword [esp + 0x30], ebx
cmp ebx, edx
jne 0x41bf47
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [ecx + 0x14]
jb 0x41bf16
push edi
call dword [sym.imp.GDI32.dll_EndDoc]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00658a01
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.GDI32.dll_AbortDoc]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x50]
push eax
call fcn.00658a01
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret