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

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
mov esi, ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
mov al, byte [esi + 0xc]
test al, al
jne 0x47fd0b
mov eax, dword [esi + 0x238]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call ebx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
push 0xcc0020
push eax
push 1
push 0
push 0
push ebp
push eax
push ecx
push 0
push 1
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esp + 0x18]
push edx
push ebp
call ebx
jmp 0x47fd47
mov eax, dword [esi + 0x248]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call ebx
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
push 0xcc0020
push 0
push 0
push ebp
add edx, 2
push ecx
push edx
push 0
push 0
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
push eax
push ebp
call ebx
mov ecx, dword [esi + 0x244]
push ecx
push ebp
call ebx
mov edx, dword [esi + 0x2c]
push 0xcc0020
push 0
push 0
push ebp
push edx
push 1
push 0
push 0
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push 0xcc0020
push 0
push 0
push ebp
push eax
push 1
inc ecx
push 0
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x10]
push edx
push ebp
call ebx
mov eax, dword [esi + 0x24c]
mov eax, dword [eax + 0x8b8]
test eax, eax
je 0x4800d3
mov ecx, dword [esi + 0x230]
mov edx, dword [esi + 0x234]
or ecx, edx
je 0x4800d3
mov eax, dword [eax + 0xd0]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4800d3
jmp 0x47fdd6
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x24c]
mov ecx, dword [edx + 0x44]
cmp ecx, 4
je 0x47fee3
cmp ecx, 5
je 0x47fee3
mov ecx, dword [edx + 0x308]
test ecx, ecx
je 0x47fe76
mov ebx, dword [eax + 0x1c]
xor edi, edi
mov ecx, ebx
mov edx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x28], edx
test ecx, ecx
mov dword [esp + 0x20], edx
je 0x47fe23
mov ebx, dword [eax + 0x20]
jmp 0x47ff8d
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x14], eax
je 0x47ff8d
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov edx, ecx
or edx, eax
je 0x47ff8d
mov edx, dword [esp + 0x14]
add ecx, 1
adc eax, 0
mov dword [esp + 0x34], ecx
fild qword [edx + 0x68]
mov dword [esp + 0x38], eax
fmul qword [edx + 0xd8]
fmul qword [0x61ec38]
fild qword [esp + 0x34]
fdivp st(1)
call fcn.005c7778
add ebx, eax
adc edi, edx
jmp 0x47ff8d
mov ecx, dword [eax + 0x14]
mov ebx, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [esp + 0x24], ebx
test ecx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
je 0x47febc
mov eax, dword [eax + 0x38]
test eax, eax
je 0x47fea5
mov ebx, dword [eax + 8]
mov edi, dword [eax + 0xc]
jmp 0x47ff8d
mov eax, dword [esi + 0x24c]
mov ebx, dword [eax + 0x470]
mov edi, dword [eax + 0x474]
jmp 0x47ff8d
mov eax, dword [eax]
test eax, eax
je 0x47ff8d
mov ecx, dword [eax + 0x50]
mov ebx, dword [eax + 0x68]
mov edx, dword [eax + 0x54]
mov edi, dword [eax + 0x6c]
add ebx, ecx
mov dword [esp + 0x1c], ecx
adc edi, edx
mov dword [esp + 0x20], edx
jmp 0x47ff8d
mov ebx, dword [eax + 0x1c]
xor edi, edi
mov ecx, ebx
mov edx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x28], edx
test ecx, ecx
mov dword [esp + 0x20], edx
je 0x47ff2c
mov eax, dword [eax + 0x38]
test eax, eax
je 0x47ff0f
mov ebx, dword [eax + 0x1c]
jmp 0x47ff71
mov eax, dword [esi + 0x24c]
fld qword [eax + 0x368]
fmul qword [0x61ec38]
call fcn.005c7778
mov ebx, eax
mov edi, edx
jmp 0x47ff73
mov eax, dword [eax]
test eax, eax
je 0x47ff73
mov ecx, dword [eax + 0xd4]
mov edx, dword [eax + 0xcc]
xor edi, edi
lea ebx, [ecx + edx]
mov cl, byte [eax + 0xca]
test cl, cl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
jne 0x47ff73
mov ecx, dword [eax + 0x54]
test ecx, ecx
jl 0x47ff73
jg 0x47ff65
mov ecx, dword [eax + 0x50]
test ecx, ecx
jb 0x47ff73
mov eax, dword [eax + 0xd0]
cmp eax, ebx
jbe 0x47ff71
mov ebx, eax
xor edi, edi
mov eax, dword [esi + 0x234]
mov ecx, dword [esi + 0x230]
cmp edi, eax
jl 0x47ff8d
jg 0x47ff89
cmp ebx, ecx
jbe 0x47ff8d
mov ebx, ecx
mov edi, eax
mov ecx, dword [esp + 0x28]
cmp ecx, edi
jl 0x47ffa3
jg 0x47ff9d
cmp dword [esp + 0x24], ebx
jbe 0x47ffa3
mov ebx, dword [esp + 0x24]
mov edi, ecx
mov eax, dword [esi + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
fild qword [esi + 0x230]
cdq
fstp dword [esp + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
call fcn.005c9b80
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
fild qword [esp + 0x3c]
fdiv dword [esp + 0x10]
call fcn.005c7778
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
push edi
push ebx
push edx
push eax
call fcn.005c9b80
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
fild qword [esp + 0x44]
fdiv dword [esp + 0x10]
call fcn.005c7778
mov ecx, dword [esi + 0x240]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
mov eax, dword [esp + 0x14]
push ecx
push ebp
sub edi, eax
call ebx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2c]
push 0xcc0020
push eax
push 1
push 0
push 0
push ebp
push eax
push edi
mov edi, dword [esp + 0x78]
inc edx
push 0
push edx
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x10]
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x4800c0
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
cdq
push ecx
push edx
push eax
call fcn.005c9b80
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
fild qword [esp + 0x4c]
fild qword [esi + 0x230]
fdivp st(1)
call fcn.005c7778
mov edx, dword [esi + 0x23c]
mov dword [esp + 0x14], eax
push edx
push ebp
call ebx
mov ecx, dword [esp + 0x14]
push 0xcc0020
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x2c]
push 0
push 0
push ebp
push eax
push 1
inc ecx
push 0
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x10]
push edx
push ebp
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x47fdd2
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4