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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640d00
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
wait
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp byte [edi + 0xc], 0
jne 0x495e14
mov eax, dword [edi + 0x238]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x2c]
push 0xcc0020
push eax
push 1
push 0
push 0
push ebx
push eax
mov ecx, dword [edi + 0x28]
push ecx
push 0
push 1
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [ebp - 0x1c]
push edx
jmp 0x495e49
mov eax, dword [edi + 0x248]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1c], eax
push 0xcc0020
push 0
push 0
push ebx
mov ecx, dword [edi + 0x2c]
push ecx
mov edx, dword [edi + 0x28]
add edx, 2
push edx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x244]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
push 0xcc0020
push 0
push 0
push ebx
mov edx, dword [edi + 0x2c]
push edx
push 1
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
push 0
push 0
push ebx
mov eax, dword [edi + 0x2c]
push eax
push 1
push 0
mov ecx, dword [edi + 0x28]
inc ecx
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 0x14]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x24c]
mov eax, dword [eax + 0x938]
test eax, eax
je 0x4962ba
mov ecx, dword [edi + 0x230]
or ecx, dword [edi + 0x234]
je 0x4962ba
mov esi, dword [eax + 0xb0]
fld qword [0x6796f0]
test esi, esi
je 0x496295
mov edx, dword [edi + 0x24c]
mov eax, dword [edx + 0x44]
cmp eax, 4
je 0x4961dc
cmp eax, 5
je 0x4961dc
cmp dword [edx + 0x340], 0
je 0x49613a
cmp dword [edx + 0x114], 0
jl 0x495f78
jg 0x495f1b
cmp dword [edx + 0x110], 0
jbe 0x495f78
fstp st(0)
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov eax, ebx
mov dword [ebp - 0x3c], eax
mov ecx, edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp dword [esi + 0x14], 0
je 0x495f64
cmp dword [esi + 0x58], 0
je 0x495f56
mov eax, dword [esi + 0x58]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 0x2c], ebx
mov edi, dword [eax + 0x3c]
mov dword [ebp - 0x28], edi
jmp 0x495fa7
mov ebx, dword [esi + 0x40]
mov dword [ebp - 0x2c], ebx
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x28], edi
jmp 0x495fa7
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
add ebx, edx
mov dword [ebp - 0x2c], ebx
mov eax, dword [eax + 0x7c]
adc edi, eax
mov dword [ebp - 0x28], edi
jmp 0x495fa7
mov ebx, dword [esi + 0x1c]
xor edi, edi
mov eax, ebx
mov dword [ebp - 0x3c], eax
mov ecx, edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp dword [esi + 0x14], edi
je 0x4960eb
mov ebx, dword [esi + 0x20]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
fstp st(0)
mov eax, dword [ebp - 0x38]
cmp eax, edi
jl 0x495fc0
jg 0x495fb5
cmp dword [ebp - 0x3c], ebx
jbe 0x495fc0
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
mov edi, eax
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
cdq
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x18]
fild qword [ecx + 0x230]
fstp dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x3c]
push ecx
push edx
push eax
call fcn.00617ef0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
fild qword [ebp - 0x54]
fld dword [ebp - 0x1c]
fld st(0)
fdivp st(2)
fxch st(1)
call fcn.006154a0
mov dword [ebp - 0x1c], eax
push edi
push ebx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00617ef0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
fild qword [ebp - 0x5c]
fdivrp st(1)
call fcn.006154a0
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x240]
push ecx
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2c]
push 0xcc0020
push eax
push 1
push 0
push 0
push edi
push eax
mov edx, dword [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x1c]
inc eax
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [ebp - 0x14]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0x14], 0
jne 0x4960de
mov eax, dword [ebx + 0x28]
cdq
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x34]
push ecx
push edx
push eax
call fcn.00617ef0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
fild qword [ebp - 0x64]
fild qword [ebx + 0x230]
fdivp st(1)
call fcn.006154a0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebx + 0x23c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
push 0xcc0020
push 0
push 0
push edi
mov eax, dword [ebx + 0x2c]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x1c]
inc ecx
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esi + 0x58]
mov edi, ebx
mov ebx, dword [ebp - 0x20]
jmp 0x495ed1
cmp dword [esi], 0
je 0x495fa5
mov ecx, dword [esi]
mov eax, dword [ecx + 0x70]
mov ecx, dword [ecx + 0x74]
mov edx, eax
or edx, ecx
je 0x495fa5
mov edx, dword [esi]
fild qword [edx + 0x78]
fld qword [edx + 0xf0]
fmulp st(2)
fmulp st(1)
add eax, 1
adc ecx, 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
fild qword [ebp - 0x4c]
fdivp st(1)
call fcn.006154d6
add ebx, eax
mov dword [ebp - 0x2c], ebx
adc edi, edx
mov dword [ebp - 0x28], edi
jmp 0x495fa7
fstp st(0)
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov eax, ebx
mov dword [ebp - 0x3c], eax
mov ecx, edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
cmp dword [esi + 0x14], 0
je 0x4961b0
cmp dword [esi + 0x58], 0
je 0x496178
mov eax, dword [esi + 0x58]
mov ebx, dword [eax + 8]
mov dword [ebp - 0x2c], ebx
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x28], edi
jmp 0x495fa7
mov ebx, dword [edx + 0x4e8]
mov edi, dword [edx + 0x4ec]
test edi, edi
jl 0x496199
jg 0x49618e
test ebx, ebx
jbe 0x496199
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
jmp 0x495fa7
mov ebx, dword [edx + 0x110]
mov dword [ebp - 0x2c], ebx
mov edi, dword [edx + 0x114]
mov dword [ebp - 0x28], edi
jmp 0x495fa7
cmp dword [esi], 0
je 0x495fa7
mov eax, dword [esi]
mov ecx, dword [eax + 0x60]
mov edx, dword [eax + 0x64]
mov ebx, dword [eax + 0x78]
add ebx, ecx
mov dword [ebp - 0x2c], ebx
mov edi, dword [eax + 0x7c]
adc edi, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
jmp 0x495fa7
mov ebx, dword [esi + 0x1c]
xor edi, edi
mov eax, ebx
mov dword [ebp - 0x3c], eax
mov ecx, edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp dword [esi + 0x14], edi
je 0x49621c
cmp dword [esi + 0x58], edi
je 0x49620b
fstp st(0)
mov eax, dword [esi + 0x58]
mov ebx, dword [eax + 0x1c]
jmp 0x49625d
fmul qword [edx + 0x3c8]
call fcn.006154d6
mov ebx, eax
mov edi, edx
jmp 0x49625f
fstp st(0)
cmp dword [esi], 0
je 0x496265
mov eax, dword [esi]
mov ecx, dword [eax + 0xe8]
mov edx, dword [eax + 0xe0]
lea ebx, [ecx + edx]
xor edi, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
cmp byte [eax + 0xdd], 0
jne 0x49625f
cmp dword [eax + 0x64], edi
jl 0x49625f
jg 0x496251
cmp dword [eax + 0x60], edi
jb 0x49625f
mov eax, dword [eax + 0xe4]
cmp eax, ebx
jbe 0x49625d
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x230]
mov eax, dword [eax + 0x234]
cmp edi, eax
jl 0x495fa7
jg 0x496286
cmp ebx, ecx
jbe 0x495fa7
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov edi, eax
mov dword [ebp - 0x28], edi
jmp 0x495fa7
fstp st(0)
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
wait
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4