Function at 0x477560
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7a4
lea eax, [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x7b0]
push eax
mov esi, ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
cmp ecx, eax
je 0x477d8c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
cmp edx, eax
je 0x477d8c
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, eax
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0xa0], edi
call ebp
test eax, eax
je 0x4775cf
mov eax, dword [esi + 4]
lea edx, [esp + 0x38]
push edx
push eax
call ebp
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x101f
push ecx
call ebx
lea edx, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
push 0
push 0
push 0x101f
push eax
call ebx
lea ecx, [esp + 0x134]
push ecx
push eax
call ebp
mov edx, dword [esp + 0x138]
mov ebp, dword [esp + 0x34]
add ebp, edx
push edi
mov dword [esp + 0x38], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x38]
mov ebp, eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
mov dword [esp + 0x80], eax
call edi
push 1
push ebp
mov dword [esp + 0x9c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x84]
mov dword [esp + 0x84], eax
push edx
push ebp
call edi
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x30]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esi + 0x88]
lea edx, [esp + 0x30]
push ecx
push edx
push ebp
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x104]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x38]
xor edi, edi
push eax
push 1
push edi
mov dword [esp + 0x110], 0xb
mov dword [esp + 0x114], edi
mov dword [esp + 0x124], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebp
mov dword [esp + 0x88], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov dword [esp + 0x80], eax
push 1
mov ecx, dword [esi + 4]
push 0x1033
push ecx
call ebx
mov eax, dword [esi + 4]
lea edx, [esp + 0x64]
push edx
push edi
push 0x1022
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
call ebx
mov ecx, dword [esi + 4]
push edi
push edi
push 0x1004
push ecx
call ebx
mov edx, dword [esi + 4]
push edi
push edi
push 0x1027
push edx
mov dword [esp + 0x6c], eax
call ebx
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0x20]
push eax
call edi
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x58], eax
push ecx
call edi
mov edx, dword [esi + 0x28]
mov dword [esp + 0x50], eax
push edx
call edi
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x2c]
push eax
call edi
mov ecx, dword [esi + 4]
xor edi, edi
push edi
push 1
push 0x1002
push ecx
mov dword [esp + 0x5c], eax
call ebx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
push edi
push edi
push 0x1004
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x64], edi
call ebx
mov edx, dword [esi + 4]
lea ecx, [esp + 0x9c]
push ecx
push edi
push 0x100e
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xac], edi
call ebx
mov edi, dword [esp + 0xa8]
mov edx, dword [esp + 0xa0]
sub edi, edx
imul edi, dword [esp + 0x44]
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xac]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb0]
sub edx, ecx
cmp edx, edi
jge 0x47782d
mov dword [esp + 0x54], 1
mov ecx, dword [esi + 4]
lea eax, [esp + 0x104]
xor edi, edi
push eax
push edi
push 0x105f
push ecx
call ebx
test eax, eax
je 0x477cdb
jmp 0x47784f
xor edi, edi
mov eax, dword [esi + 4]
lea edx, [esp + 0xbc]
push edx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], edi
mov edi, dword [esp + 0x1c]
push 0
push 0x1038
push eax
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], 0
call ebx
test eax, eax
jne 0x4778a7
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x10]
inc edi
add eax, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
jmp 0x477cbf
mov edx, dword [esp + 0x10c]
mov edi, dword [esp + 0xc0]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0xc8]
sub edx, edi
cmp eax, ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x1c], eax
jge 0x477c2e
jmp 0x4778ec
mov edx, dword [esp + 0x88]
cmp dword [0x525c60], 6
jge 0x477901
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
add ecx, eax
jmp 0x477905
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
add ecx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
add edx, eax
mov ecx, 0x186
xor eax, eax
lea edi, [esp + 0x19c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], eax
or eax, 0xffffffff
lea edx, [esp + 0xdc]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xec], eax
mov eax, dword [esi + 4]
push edx
push 0
lea ecx, [esp + 0x1a4]
push 0x104b
push eax
mov dword [esp + 0xec], 0xb
mov dword [esp + 0xf8], 0
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], 0x30b
call ebx
test eax, eax
je 0x477c05
test byte [esp + 0xe8], 2
mov al, byte [esp + 0x1c]
je 0x4779c7
mov edi, dword [esp + 0x48]
test al, 1
jne 0x4779c1
mov edi, dword [esp + 0x4c]
mov ecx, dword [esi + 0x34]
push ecx
jmp 0x4779d7
mov edi, dword [esp + 0x58]
test al, 1
jne 0x4779d3
mov edi, dword [esp + 0x50]
mov edx, dword [esi + 0x30]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [esp + 0x20]
push edi
push eax
push ebp
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xf8]
cmp eax, 0xffffffff
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd4], edx
jle 0x477ac3
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x477a3a
test eax, eax
jne 0x477a3a
mov ecx, dword [esi + 0x8c]
test ecx, ecx
je 0x477ac3
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x477ac7
lea edx, [esp + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0x178]
sub eax, edx
mov edx, dword [esp + 0x170]
sub eax, edi
push 1
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0xfc]
sar eax, 1
add edi, eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xd4], edi
mov edi, dword [esp + 0x178]
mov ecx, dword [esp + 0xd4]
sub edi, eax
mov eax, dword [esp + 0xd0]
push ecx
add edi, eax
push eax
mov eax, dword [esp + 0x4c]
push ebp
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov eax, dword [esp + 0xf8]
inc edi
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x40]
mov dl, byte [esp + 0x108]
mov dword [esp + 0x14], 0x40024
test dl, 2
je 0x477ae8
mov dword [esp + 0x14], 0x40025
jmp 0x477bdb
test dl, 1
je 0x477b65
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], 0x40026
test eax, eax
jne 0x477b07
sub dword [esp + 0x28], 3
jmp 0x477bdb
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x13c]
mov edx, dword [esi + 4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x140], eax
lea ecx, [esp + 0x13c]
mov dword [esp + 0x13c], 0xb
lea eax, [edi + 1]
push ecx
push eax
push 0x105f
push edx
mov dword [esp + 0x160], eax
call ebx
test eax, eax
je 0x477b5e
cmp edi, dword [esi + 0xa8]
je 0x477b5e
sub dword [esp + 0x28], 3
jmp 0x477bdb
sub dword [esp + 0x28], 0xf
jmp 0x477bdb
mov edx, dword [esp + 0x118]
test edx, edx
jne 0x477bd6
mov edx, dword [esi + 0x94]
test edx, edx
je 0x477bd6
test ecx, ecx
mov dword [esp + 0x14], 0x40026
je 0x477b96
lea edx, [esp + 0x17c]
push edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
mov eax, dword [esp + 0x44]
cmp eax, 0xa
jge 0x477ba8
mov eax, dword [esp + 0x28]
sub eax, 8
jmp 0x477bb4
cmp eax, 0x64
jge 0x477bb8
mov eax, dword [esp + 0x28]
sub eax, 5
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xf0]
inc eax
push eax
push 0x51909c
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x477bdb
add dword [esp + 0x20], 3
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xf0]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.004debba
mov edx, dword [esp + 0xfc]
add esp, 4
push eax
push edx
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
add eax, ecx
cmp eax, dword [esp + 0x3c]
jg 0x477c2e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4778e5
mov eax, dword [esi + 0x90]
test eax, eax
je 0x477c96
cmp dword [0x525c60], 6
jge 0x477c6f
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x124]
push edx
add ecx, edi
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x6c]
dec edx
add eax, edi
push edx
push eax
jmp 0x477c8f
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x124]
push ecx
push edx
push edi
push ebp
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x3c]
dec eax
push eax
push edi
push ebp
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
inc edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x118], edi
mov ecx, dword [esi + 4]
lea eax, [esp + 0x104]
push eax
push edi
push 0x105f
push ecx
call ebx
test eax, eax
jne 0x47784d
mov edx, dword [esp + 0x74]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push ebp
call esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push 0xcc0020
mov edi, dword [esp + 0x9c]
push eax
push ecx
push ebp
push edx
mov edx, dword [esp + 0x4c]
push edx
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x7c]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x60]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x84]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x94]
push eax
push ebp
call esi
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x78]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0x80]
push edx
call esi
mov eax, dword [esp + 0x58]
push eax
call esi
mov ecx, dword [esp + 0x50]
push ecx
call esi
mov edx, dword [esp + 0x48]
push edx
call esi
mov eax, dword [esp + 0x4c]
push eax
call esi
mov ecx, dword [esp + 0x7b8]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x7a4
ret 4