Function at 0x4770a0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x284
push ebx
push esi
mov esi, dword [esp + 0x290]
push edi
mov ebx, ecx
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x4c], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
cmp ecx, eax
je 0x47750f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp edx, eax
je 0x47750f
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [esp + 0x48], eax
call ebp
push 1
push esi
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push 1
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x2c]
xor edi, edi
lea eax, [edx - 2]
test eax, eax
mov dword [esp + 0x10], eax
jl 0x47721d
jmp 0x47714d
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x4c]
mov ebx, dword [ebx + 0x50]
mov ebp, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
xor eax, eax
mov al, byte [esp + 0x16]
xor edx, edx
mov dl, byte [esp + 0x1a]
sub ebp, edi
imul eax, edi
imul edx, ebp
add eax, edx
xor edx, edx
div dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x34], ebp
mov dh, al
xor eax, eax
mov al, bh
xor ebx, ebx
mov bl, ch
imul eax, edi
imul ebx, ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], edx
add eax, ebx
xor edx, edx
div ebp
mov ebx, dword [esp + 0x18]
and ecx, 0xff
imul ecx, dword [esp + 0x34]
xor edx, edx
mov bl, al
mov eax, dword [esp + 0x14]
and eax, 0xff
imul eax, edi
add eax, ecx
div ebp
shl ebx, 8
and eax, 0xff
or eax, ebx
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
push esi
call ebp
lea eax, [esp + 0x38]
push eax
push edi
push 0
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x28]
push edi
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x30]
push edx
push esi
call ebp
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc edi
cmp edi, eax
jle 0x477149
mov eax, dword [ebx + 0x44]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, eax
push edi
push esi
call ebp
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
dec edx
push ecx
xor ebx, ebx
push edx
push ebx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
dec eax
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x30]
push edx
push esi
call ebp
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x94]
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x94]
mov dword [esp + 0x64], 6
mov dword [esp + 0x70], eax
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x74], 0xff
push ecx
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x20], eax
call ebp
mov edx, dword [edi + 0x84]
push edx
push esi
call ebp
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x54]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x64]
push ecx
push ebx
push 0x105f
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x47749d
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
lea eax, [ebx + 6]
add ecx, ebx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x70]
push 0x8024
push eax
push 0xffffffffffffffff
push ecx
push esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x38]
add ebx, eax
push edx
push 2
push ebx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffffe
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
stosw word es:[edi], ax
mov edx, dword [ecx + 0x60]
mov eax, dword [esp + 0x14]
cmp edx, eax
jne 0x477473
push 0x99a8ac
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0xffffff
push 1
push 0
mov edi, eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], 0
mov ecx, dword [eax + 0x60]
push edx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x90]
push ecx
lea ecx, [eax + 0x64]
call fcn.0048b5c0
mov edx, eax
push edi
push esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x477418
call ebp
lea edx, [esp + 0x38]
lea eax, [ebx - 7]
push edx
push 4
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
lea ecx, [ebx - 0x11]
push 4
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
lea edx, [ebx - 0xc]
push 0xe
push edx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x10]
push eax
push esi
call ebp
lea ecx, [ebx - 6]
push 3
push ecx
jmp 0x477454
call ebp
lea edx, [esp + 0x38]
lea eax, [ebx - 0x11]
push edx
push 0xe
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
lea eax, [ebx - 0xc]
push 4
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x10]
push ecx
push esi
call ebp
lea edx, [ebx - 7]
push 0xe
push edx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
lea eax, [ebx - 0x11]
push 0xe
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x18]
push eax
push esi
call ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x64]
inc eax
push edx
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x24]
push 0x105f
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4772f4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push 0xcc0020
mov ebx, dword [esp + 0x4c]
push eax
push ecx
push esi
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4774d0
push eax
push esi
call ebp
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4774e9
push eax
push esi
call ebp
mov ecx, dword [esp + 0x44]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x40]
push edx
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x298]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x284
ret 4