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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push edi
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x34], eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], edi
jle 0x4772b9
lea edx, [eax + 1]
call fcn.0048fd83
test al, al
jne 0x4772af
dec edi
mov eax, edx
cmp eax, edi
jl 0x4772a2
mov dword [esp + 0x44], edi
test edi, edi
je 0x477335
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 0x14], eax
je 0x477335
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x477335
cmp dword [ebx + 0x54], 0
mov ecx, dword [ebx + 8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 4]
setne byte [esp + 0x3c]
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x48], ecx
je 0x4772fd
lea edi, [ebx + 0xc]
call fcn.00560bf6
mov eax, dword [esp + 0x14]
add eax, 0x10
lea ecx, [esp + 0x18]
call fcn.004aa9dc
lea eax, [esp + 0x18]
call fcn.004aa9f7
test al, al
jne 0x477341
mov ecx, dword [esp + 0x34]
fld1
mov eax, dword [ecx]
push ecx
push ecx
fstp qword [esp]
call dword [eax + 0x24]
cmp byte [esp + 0x3c], 0
je 0x477335
lea edi, [ebx + 0xc]
call fcn.00560b96
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.004aaa0c
mov edi, dword [eax + 0x1e4]
mov ecx, dword [esi + 8]
mov edx, edi
mov dword [esp + 0x10], edi
call fcn.0048fd83
test al, al
je 0x47767f
mov esi, dword [esp + 0x34]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
jne 0x477326
push edi
push str.Printing_page__d
push 1
call fcn.00539682
mov eax, edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 8]
add esp, 0xc
call fcn.0048fc46
dec eax
neg eax
sbb al, al
inc al
mov byte [esp + 0x40], al
push dword [esp + 0x40]
push ebx
push dword [edi + 0xc]
call fcn.004ae0e3
cmp byte [esp + 0x40], 0
mov eax, dword [esp + 0x48]
jne 0x4773b8
mov eax, dword [esp + 0x4c]
cmp byte [esp + 0x40], 0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x4c]
jne 0x4773ca
mov eax, dword [esp + 0x48]
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
fldz
mov eax, dword [ebx + 8]
fst dword [esp + 0x88]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
fstp dword [esp + 0x8c]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [ebx + 0x10]
push 0x5a
push eax
fstp dword [esp + 0x98]
fild dword [esp + 0x28]
fstp dword [esp + 0x9c]
fld dword [esp + 0x9c]
fstp dword [esp + 0x24]
call esi
test eax, eax
mov dword [esp + 0x14], eax
jne 0x477431
mov dword [esp + 0x14], 1
mov eax, dword [ebx + 0x10]
fld dword [esp + 0x90]
push 0x58
fstp dword [esp + 0x30]
push eax
call esi
test eax, eax
mov dword [esp + 0x20], eax
jne 0x477454
mov dword [esp + 0x20], 1
fldz
fst dword [esp + 0x98]
fstp dword [esp + 0x9c]
fld dword [esp + 0x2c]
call fcn.00613f70
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fidiv dword [esp + 0x20]
fld qword [0x6942c8]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0xa0]
fld dword [esp + 0x1c]
call fcn.00613f70
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
push dword [esp + 0x10]
mov edi, dword [edi + 8]
lea esi, [esp + 0xbc]
fidiv dword [esp + 0x18]
fmulp st(1)
fstp dword [esp + 0xa8]
call fcn.0048fcb3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push dword [eax + 4]
mov eax, esi
push eax
lea eax, [esp + 0x78]
push eax
lea edi, [esp + 0xa4]
lea esi, [esp + 0x94]
call fcn.004776fb
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x1c]
call fcn.004aaa0c
call fcn.0047d6ac
lea esi, [esp + 0x70]
call fcn.00497a47
fstp dword [esp + 0x10]
lea esi, [esp + 0xa8]
call fcn.00497a47
fdivr dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
push 0x58
push eax
fsqrt
fmul dword [0x6944c0]
fstp dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
fld dword [esp + 0x10]
push ecx
push ecx
fstp dword [esp + 4]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fstp dword [esp]
call fcn.004aae1e
or dword [esp + 0x50], 0xffffffff
fstp dword [esp + 0x10]
xor esi, esi
lea eax, [esp + 0x18]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], esi
call fcn.004aaa0c
fld dword [esp + 0x10]
mov edi, dword [ebp + 0xc]
push ecx
fstp dword [esp]
lea ecx, [esp + 0x54]
push ecx
push dword [edi]
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.0047da65
cmp dword [esp + 0x6c], esi
lea eax, [esp + 0x50]
jne 0x47769c
call fcn.0054cb88
test al, al
je 0x477676
mov eax, dword [edi + 8]
cmp byte [eax + 0x18], 0
je 0x4775ba
lea ecx, [esp + 0x50]
call fcn.004ae1e7
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
mov edi, 0x646778
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
call fcn.0055ad66
test al, al
je 0x477668
cmp dword [esp + 0x28], esi
je 0x477668
fld dword [esp + 0x7c]
fsub dword [esp + 0x74]
call fcn.00613f70
fld dword [esp + 0x78]
fsub dword [esp + 0x70]
mov esi, eax
call fcn.00613f70
fld dword [esp + 0x74]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x8c], esi
call fcn.00613f70
fld dword [esp + 0x78]
push eax
call fcn.00613f70
push eax
push ecx
mov ecx, dword [esp + 0x3c]
mov eax, esp
push ebx
mov dword [eax], ecx
call fcn.004adfba
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_EndPage]
inc dword [esp + 0x30]
fild dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
push ecx
fidiv dword [esp + 0x48]
push ecx
fstp qword [esp]
call dword [eax + 0x24]
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esp + 0x50]
call fcn.0054cb6d
lea esi, [esp + 0x18]
call fcn.004bbfe2
mov eax, esi
call fcn.004aa9f7
test al, al
jne 0x47733e
jmp 0x477316
call fcn.0054cb6d
jmp 0x477326