Function at 0x404c50
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x304], ebx
mov dword [ebp - 0x34c], eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebx + 0x30]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [ebp - 0x2c8]
push edi
push dword [ebx + 8]
mov dword [ebp - 0x2f8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebx + 0x38], 0
je 0x404cce
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x2f8]
cmp ecx, eax
cmovl ecx, eax
jmp 0x404cd4
mov ecx, dword [ebp - 0x2f8]
mov eax, dword [ebx + 0x68]
add eax, ecx
mov dword [ebp - 0x308], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x290]
sub edi, dword [ebp - 0x298]
push 0
push 0
push 0x1200
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [eax + 1]
mov eax, dword [esi + 0xc]
sub eax, edi
mov dword [ebp - 0x2f0], ebx
cdq
idiv dword [ebp - 0x308]
mov dword [ebp - 0x300], eax
mov eax, dword [esi + 0x14]
sub eax, edi
cdq
idiv dword [ebp - 0x308]
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 0x300]
test eax, eax
mov dword [ebp - 0x334], ecx
cmovs eax, edx
mov dword [ebp - 0x300], eax
test ebx, ebx
je 0x405984
cmp eax, ecx
jg 0x405984
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d699
mov ecx, dword [ebp - 0x2f0]
add esp, 4
mov edi, dword [ebp - 0x304]
dec ecx
mov dword [ebp - 0x2f4], eax
lea ebx, [eax + 4]
mov dword [eax], 0
push ebx
push ecx
push 0x1211
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x2f0]
mov eax, 1
lea ecx, [edx - 1]
cmp edx, eax
jle 0x404e18
cmp ecx, 8
jb 0x404e05
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x404dca
dec ecx
or ecx, 0xfffffff8
inc ecx
movdqa xmm1, xmmword [0x48cca0]
mov dword [ebp - 0x320], ecx
mov ecx, edx
sub ecx, dword [ebp - 0x320]
movdqu xmm0, xmmword [ebx]
add eax, 8
lea ebx, [ebx + 0x20]
paddd xmm0, xmm1
movdqu xmmword [ebx - 0x20], xmm0
movdqu xmm0, xmmword [ebx - 0x10]
paddd xmm0, xmm1
movdqu xmmword [ebx - 0x10], xmm0
cmp eax, ecx
jl 0x404de0
cmp eax, edx
jge 0x404e18
mov ecx, dword [ebp - 0x2f4]
nop
inc dword [ecx + eax*4]
inc eax
cmp eax, edx
jl 0x404e10
xor ecx, ecx
mov eax, edx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d699
mov dword [ebp - 0x30c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x2f0]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d699
mov dword [ebp - 0x2fc], eax
add esp, 8
mov eax, dword [ebp - 0x2f0]
xor ebx, ebx
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x310], 0
test eax, eax
jle 0x404fdd
jmp 0x404e80
mov ecx, dword [ebp - 0x2f4]
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x30c]
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ecx + ebx*4]
push eax
test ecx, ecx
jne 0x404ebe
push ecx
push 0x1207
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push dword [ebp - 0x2ec]
push dword [edi + 8]
push dword [edi + 0xc]
jmp 0x404ede
lea eax, [ecx - 1]
push eax
push 0x1207
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push dword [ebp - 0x2ec]
push dword [edi + 8]
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_MapWindowPoints]
test ebx, ebx
jne 0x404f45
cmp byte [edi + 0x9c], bl
je 0x404f45
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0x1c
push eax
push 2
push dword [edi + 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x290], ebx
movdqu xmmword [ebp - 0x2a0], xmm0
mov dword [ebp - 0x2a4], 4
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov ecx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x294]
sub dword [ecx], eax
mov eax, dword [edi + 0x98]
add eax, dword [ecx]
cmp dword [ecx + 8], eax
jge 0x404f45
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x2fc]
mov eax, dword [edi + 0xa0]
mov dword [ecx + ebx*4], eax
test ebx, ebx
je 0x404f95
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], 4
push eax
mov eax, dword [ebp - 0x2f4]
mov eax, dword [eax + ebx*4]
dec eax
push eax
push 0x120b
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [ebp - 0x2a4], 1
je 0x404f95
mov eax, dword [ebp - 0x2fc]
or dword [eax + ebx*4], 2
mov ecx, dword [ebp - 0x330]
cmp ecx, ebx
jle 0x404fb4
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 8]
cmp eax, dword [esi + 8]
cmovg ecx, ebx
mov dword [ebp - 0x330], ecx
mov eax, dword [ebp - 0x2ec]
mov edx, dword [ebp - 0x310]
mov eax, dword [eax]
cmp eax, dword [esi + 0x10]
mov eax, dword [ebp - 0x2f0]
cmovl edx, ebx
inc ebx
mov dword [ebp - 0x310], edx
cmp ebx, eax
jl 0x404e80
mov ecx, dword [ebp - 0x30c]
shl eax, 4
add ecx, 0xfffffff8
add eax, ecx
mov dword [ebp - 0x350], eax
mov eax, dword [eax]
cmp dword [esi + 0x10], eax
jle 0x405023
movdqu xmm0, xmmword [esi + 8]
push 5
movdqu xmmword [ebp - 0x29c], xmm0
mov dword [ebp - 0x29c], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x29c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_FillRect]
push 0x15
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esi]
mov dword [ebp - 0x320], eax
call ebx
push dword [edi + 0x30]
mov dword [ebp - 0x340], eax
push dword [esi]
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
mov dword [ebp - 0x344], eax
call ebx
push 0x32
mov dword [ebp - 0x318], eax
call ebx
mov ecx, edi
mov dword [ebp - 0x31c], eax
call fcn.004096d0
mov edx, dword [ebp - 0x300]
mov ecx, eax
push edx
call fcn.00407830
mov ecx, dword [ebp - 0x300]
mov ebx, eax
mov eax, ecx
mov dword [ebp - 0x2ec], ebx
imul eax, dword [ebp - 0x308]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x308]
lea esp, [esp]
test ebx, ebx
je 0x405897
test byte [ebx + 0x20], 1
je 0x4050f3
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [edi + 8]
jne 0x4050de
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
jmp 0x405106
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xa
jmp 0x405106
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
push dword [esi]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp - 0x330]
mov edx, eax
mov dword [ebp - 0x2f0], eax
cmp eax, dword [ebp - 0x310]
jg 0x405820
lea esp, [esp]
shl edx, 4
add edx, dword [ebp - 0x30c]
mov eax, dword [edx]
mov ecx, dword [edx + 0xc]
add ecx, dword [ebp - 0x2f8]
mov edx, dword [edx + 8]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x308]
add eax, ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x234], edx
test eax, eax
jle 0x40518d
cmp edx, dword [edi + 0x90]
jle 0x405801
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x34c]
call dword [sym.imp.GDI32.dll_RectInRegion]
test eax, eax
je 0x405801
movdqu xmm0, xmmword [ebp - 0x23c]
mov eax, dword [ebp - 0x2f0]
xor ebx, ebx
mov dword [ebp - 0x328], ebx
movdqu xmmword [ebp - 0x22c], xmm0
test eax, eax
jne 0x4051f7
mov eax, dword [edi + 0x90]
cmp dword [ebp - 0x234], eax
jl 0x40520f
dec eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov ebx, eax
mov dword [ebp - 0x328], ebx
push ebx
jmp 0x405211
jle 0x40520f
mov eax, dword [edi + 0x90]
cmp dword [ebp - 0x23c], eax
jge 0x40520f
mov dword [ebp - 0x22c], eax
jmp 0x4051df
push 0
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [edi + 0x30]
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x2ec]
lea edi, [ebp - 0x23c]
push edi
mov edi, dword [ebp - 0x2ec]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x2f0]
push dword [edi + 0x20]
mov edi, dword [ebp - 0x2f4]
lea edx, [eax*4]
mov eax, dword [ecx]
mov dword [ebp - 0x338], edx
push dword [edx + edi]
push dword [esi]
mov eax, dword [eax + 0x10]
push dword [ebp - 0x2ec]
call eax
mov edi, dword [ebp - 0x304]
test al, al
je 0x40527f
test ebx, ebx
je 0x405801
jmp 0x4057fa
push dword [esi]
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push dword [esi]
mov dword [ebp - 0x324], eax
call dword [sym.imp.GDI32.dll_GetBkMode]
mov eax, dword [edi + 0x74]
add eax, dword [ebp - 0x238]
mov ebx, dword [ebp - 0x23c]
add ebx, dword [edi + 0x6c]
mov edx, dword [ebp - 0x338]
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x234]
sub eax, dword [edi + 0x6c]
mov edi, dword [ebp - 0x2f4]
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], ecx
cmp dword [edx + edi], 0
mov edi, dword [ebp - 0x304]
jne 0x405500
sub ecx, dword [ebp - 0x238]
sub eax, ebx
push ecx
push eax
push dword [esi]
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [esi]
mov dword [ebp - 0x33c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x33c]
mov ebx, eax
push ebx
mov dword [ebp - 0x32c], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x2e8]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [ebp - 0x2ec]
call fcn.00404660
imul eax, dword [edi + 0x78]
mov edx, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x2e8]
add ebx, eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x2e8], ebx
mov dword [ebp - 0x314], eax
test al, 0x40
je 0x405404
mov eax, dword [ebp - 0x2dc]
sub eax, dword [ebp - 0x2e4]
sub eax, dword [ebp - 0x31c]
cdq
sub eax, edx
mov ecx, dword [ebp - 0x318]
sar eax, 1
add ecx, ebx
add eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x2d4], eax
add eax, dword [ebp - 0x31c]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x2d8]
push eax
mov eax, dword [ebp - 0x314]
shr eax, 4
not al
mov dword [ebp - 0x2d0], ecx
and al, 1
mov dword [ebp - 0x2d8], ebx
movzx eax, al
mov ecx, edi
push eax
push dword [ebp - 0x32c]
push dword [edi + 8]
call fcn.004059b0
mov ebx, dword [ebp - 0x2e8]
mov edx, dword [ebp - 0x2ec]
add ebx, dword [ebp - 0x318]
cmp dword [edi + 0x38], 0
mov dword [ebp - 0x2e8], ebx
je 0x4054b6
mov ecx, dword [edx + 4]
lea edi, [ebp - 0x314]
mov dword [ebp - 0x314], 0
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x314]
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x2dc]
sub eax, dword [ebp - 0x2e4]
sub eax, dword [ebp - 0x31c]
cdq
shl ebx, 8
sub eax, edx
push ebx
mov edi, eax
push 0xffffffffffffffff
sar edi, 1
add edi, dword [ebp - 0x2e4]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [ebp - 0x304]
push eax
push dword [ebp - 0x31c]
push dword [ebp - 0x318]
push edi
push dword [ebp - 0x2e8]
mov edi, dword [ebp - 0x32c]
push edi
push dword [ebp - 0x354]
push dword [ebx + 0x38]
call dword [sym.imp.COMCTL32.dll_ImageList_DrawEx]
mov eax, dword [ebx + 0x6c]
mov ebx, dword [ebp - 0x2e8]
add eax, dword [ebp - 0x318]
add ebx, eax
mov dword [ebp - 0x2e8], ebx
jmp 0x4054bc
mov edi, dword [ebp - 0x32c]
push 0xcc0020
push 0
push 0
push edi
push dword [ebp - 0x280]
push ebx
push dword [ebp - 0x238]
push dword [ebp - 0x28c]
push dword [esi]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x2e8]
push dword [ebp - 0x33c]
add dword [ebp - 0x28c], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x2ec]
lea edi, [ebp - 0x348]
mov ebx, dword [ebp - 0x338]
push edi
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x348], 0x104
mov ecx, dword [edx + 4]
push edi
mov edi, dword [ebp - 0x2f4]
mov eax, dword [ecx]
push dword [ebx + edi]
push edx
call dword [eax + 8]
mov edi, eax
mov eax, dword [ebp - 0x2fc]
push dword [ebx + eax]
lea eax, [ebp - 0x28c]
push eax
push 0xffffffffffffffff
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x2fc]
movdqu xmm0, xmmword [ebp - 0x28c]
mov eax, dword [ebx + eax]
or eax, 0x400
push eax
lea eax, [ebp - 0x25c]
push eax
push 0xffffffffffffffff
push edi
push dword [esi]
movdqu xmmword [ebp - 0x25c], xmm0
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x2fc]
test byte [ebx + eax], 2
je 0x4055ac
mov eax, dword [ebp - 0x284]
sub eax, dword [ebp - 0x254]
push 0
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [ebp - 0x328]
test edi, edi
je 0x4055f9
push 0
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x254]
cmp ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x25c]
cmovg ecx, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x22c]
cmp edx, ebx
mov dword [ebp - 0x254], ecx
cmovl edx, ebx
mov dword [ebp - 0x25c], edx
jmp 0x40560b
mov ebx, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x25c]
cmp dword [ebp - 0x2f0], 0
mov eax, dword [ebp - 0x228]
mov edi, dword [ebp - 0x220]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x24c], ebx
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x214], ebx
mov ebx, dword [ebp - 0x22c]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x260], edi
mov edi, dword [ebp - 0x304]
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], ecx
jne 0x4056e5
mov eax, dword [edi + 0x6c]
mov ecx, dword [ebp - 0x228]
add eax, ebx
mov dword [ebp - 0x244], eax
mov eax, dword [edi + 0x90]
dec eax
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x29c]
push 2
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_Polyline]
mov ebx, dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x27c]
push eax
push eax
call ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x26c]
push eax
push eax
call ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x24c]
push eax
push eax
call ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
push eax
call ebx
mov eax, dword [ebp - 0x27c]
mov ebx, dword [ebp - 0x324]
cmp eax, dword [ebp - 0x274]
jge 0x405761
mov eax, dword [ebp - 0x278]
cmp eax, dword [ebp - 0x270]
jge 0x405761
push ebx
lea eax, [ebp - 0x27c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x26c]
cmp eax, dword [ebp - 0x264]
jge 0x40578d
mov eax, dword [ebp - 0x268]
cmp eax, dword [ebp - 0x260]
jge 0x40578d
push ebx
lea eax, [ebp - 0x26c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [ebp - 0x2f0], 0
je 0x40579a
mov eax, ebx
jmp 0x4057a2
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov ecx, dword [ebp - 0x24c]
cmp ecx, dword [ebp - 0x244]
jge 0x4057ce
mov ecx, dword [ebp - 0x248]
cmp ecx, dword [ebp - 0x240]
jge 0x4057ce
push eax
lea eax, [ebp - 0x24c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x214]
jge 0x4057fa
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x210]
jge 0x4057fa
push ebx
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_FillRect]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x2f0]
inc edx
mov dword [ebp - 0x2f0], edx
cmp edx, dword [ebp - 0x310]
jle 0x405140
mov ebx, dword [ebp - 0x2ec]
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x405835
mov eax, dword [ebx + 0x20]
shr eax, 4
test al, 1
je 0x405835
mov ebx, ecx
jmp 0x40585f
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x405846
mov ebx, eax
mov dword [ebp - 0x2ec], eax
jmp 0x405865
mov eax, dword [ebx + 8]
test eax, eax
je 0x40585d
lea ecx, [ecx]
cmp dword [eax + 0x10], 0
jne 0x405892
mov eax, dword [eax + 8]
test eax, eax
jne 0x405850
xor ebx, ebx
mov dword [ebp - 0x2ec], ebx
mov ecx, dword [ebp - 0x300]
mov eax, dword [ebp - 0x308]
inc ecx
add dword [ebp - 0x2f8], eax
mov dword [ebp - 0x300], ecx
cmp ecx, dword [ebp - 0x334]
jle 0x4050b0
mov ecx, dword [ebp - 0x334]
jmp 0x405898
mov ebx, dword [eax + 0x10]
jmp 0x40585f
dec ecx
mov ebx, dword [ebp - 0x30c]
inc ecx
imul ecx, eax
mov eax, dword [ebx + 0xc]
dec eax
add eax, ecx
cmp dword [esi + 0x14], eax
jle 0x40592c
movdqu xmm0, xmmword [esi + 8]
inc eax
push 5
movdqu xmmword [ebp - 0x21c], xmm0
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x350]
mov eax, dword [eax]
mov dword [ebp - 0x214], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp - 0x320]
mov eax, dword [edi + 0x90]
push dword [esi]
dec eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
lea eax, [ebp - 0x21c]
push 2
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_Polyline]
push edi
push dword [esi]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
call edi
jmp 0x405932
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x344]
push dword [esi]
call edi
push dword [ebp - 0x340]
push dword [esi]
call edi
push dword [ebp - 0x320]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call fcn.0046e86a
push dword [ebp - 0x2f4]
call fcn.0046e86a
push dword [ebp - 0x2fc]
call fcn.0046e86a
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 8
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 8