Function at 0x41c710
Capabilities:
Get graphical window text
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44354b
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x451050]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
mov ebx, 1
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0xc]
push ebx
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 3
jne 0x41c7dc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, eax
mov eax, dword [esi + 0x18]
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_FillRect]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [esi + 0x18]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
jmp 0x41d35f
cmp eax, 4
jne 0x41cafa
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edx, 0x168
sub edx, dword [eax + 8]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x44], edx
fild dword [esp + 0x44]
lea edx, [esp + 0x14]
push edx
xor ebx, ebx
fstp dword [esp + 0x1c]
push ebx
push 0x26200a
push ebx
push eax
push ecx
mov dword [esp + 0x4c], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
push 8
mov dword [esp + 0x284], ebx
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x41c86c
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [edi], eax
jmp 0x41c86e
xor edi, edi
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
movzx ecx, al
mov edx, eax
or ecx, 0xffffff00
shr edx, 8
shl ecx, 8
movzx edx, dl
or ecx, edx
shr eax, 0x10
movzx eax, al
shl ecx, 8
or ecx, eax
push ecx
mov ecx, dword [edi]
push ecx
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, ebx
je 0x41c8a7
mov dword [edi + 4], eax
cmp dword [0x45a164], ebx
je 0x41c90d
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], edx
mov edx, dword [edi]
push ecx
push edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetDC
cmp eax, ebx
je 0x41c8e7
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x54]
push ecx
push eax
push edx
mov ebx, eax
call dword [0x45a148]
mov eax, dword [edi]
push ebx
push eax
call sub.gdiplus.dll_GdipReleaseDC
test eax, eax
je 0x41c90d
mov dword [edi + 4], eax
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sub ebx, dword [esp + 0x24]
mov ecx, dword [edi]
push 0
sub eax, 4
push ecx
sub ebx, 4
mov dword [esp + 0x68], eax
call sub.gdiplus.dll_GdipSetCompositingMode
test eax, eax
je 0x41c938
mov dword [edi + 4], eax
mov edx, dword [edi]
push 2
push edx
call sub.gdiplus.dll_GdipSetSmoothingMode
test eax, eax
je 0x41c949
mov dword [edi + 4], eax
lea eax, [esp + 0x1c]
push eax
push 0xffeeeeee
mov dword [esp + 0x24], 0
call sub.gdiplus.dll_GdipCreateSolidFill
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push ecx
push ebx
push 2
push 2
push eax
push edx
mov dword [esp + 0x50], eax
call sub.gdiplus.dll_GdipFillEllipseI
test eax, eax
je 0x41c982
mov dword [edi + 4], eax
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
call sub.gdiplus.dll_GdipSetSolidFillColor
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x38]
mov eax, dword [edi]
sub esp, 8
fstp dword [esp + 4]
fldz
fstp dword [esp]
push ecx
push ebx
push 2
push 2
push edx
push eax
call sub.gdiplus.dll_GdipFillPieI
test eax, eax
je 0x41c9bc
mov dword [edi + 4], eax
fld1
lea ecx, [esp + 0x44]
push ecx
push 0
push ecx
fstp dword [esp]
push 0xff000000
mov dword [esp + 0x54], 0
call sub.gdiplus.dll_GdipCreatePen1
fld dword [esp + 0x18]
mov edx, dword [esp + 0x60]
sub esp, 8
fstp dword [esp + 4]
mov dword [esp + 0x50], eax
fldz
mov eax, dword [esp + 0x4c]
mov ecx, dword [edi]
fstp dword [esp]
push edx
push ebx
push 2
push 2
push eax
push ecx
call sub.gdiplus.dll_GdipDrawPieI
test eax, eax
je 0x41ca0d
mov dword [edi + 4], eax
fld dword [0x449370]
mov edx, dword [esp + 0x44]
push ecx
fstp dword [esp]
push edx
call sub.gdiplus.dll_GdipSetPenWidth
test eax, eax
je 0x41ca29
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
mov edx, dword [edi]
push eax
push ebx
push 2
push 2
push ecx
push edx
call sub.gdiplus.dll_GdipDrawEllipseI
test eax, eax
je 0x41ca47
mov dword [edi + 4], eax
mov eax, dword [edi]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
push edi
call sub.gdiplus.dll_GdipFree
mov esi, dword [esi + 0x18]
push 8
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x41ca81
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x18]
mov dword [edi + 4], eax
mov dword [edi], edx
jmp 0x41ca83
xor edi, edi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageHeight
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipGetImageWidth
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebx
push edx
mov edx, dword [edi]
push eax
push ecx
push esi
push edx
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
je 0x41cacd
mov dword [edi + 4], eax
mov eax, dword [edi]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
push edi
call sub.gdiplus.dll_GdipFree
mov ecx, dword [esp + 0x44]
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov edx, dword [esp + 0x38]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
push esi
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x41d35f
cmp eax, 5
jne 0x41cb53
cmp dword [0x45a164], 0
je 0x41cb1d
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call dword [0x45a148]
jmp 0x41cb35
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov ecx, dword [esi + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
test byte [esi + 0x10], 0x10
je 0x41cf06
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawFocusRect]
jmp 0x41cf06
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
test eax, 0x100
je 0x41cc94
mov edx, dword [0x45a168]
test edx, edx
je 0x41cc00
test eax, 0x200
je 0x41cb8c
test eax, 0x20000000
je 0x41cb8c
mov edi, 3
mov dword [esp + 0x20], edi
jmp 0x41cbc0
mov ecx, dword [esi + 0x10]
test cl, 4
je 0x41cb9f
mov edi, 4
mov dword [esp + 0x20], edi
jmp 0x41cbc0
test bl, cl
je 0x41cbae
mov edi, 3
mov dword [esp + 0x20], edi
jmp 0x41cbc0
and eax, 0x80000000
neg eax
sbb eax, eax
neg eax
inc eax
mov edi, eax
mov dword [esp + 0x20], eax
push edi
push 1
push edx
call dword [0x45a144]
test eax, eax
je 0x41cbe1
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call dword [0x45a148]
mov edx, dword [esi + 0x18]
mov eax, dword [0x45a168]
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
push 1
push edx
push eax
call dword [0x45a14c]
jmp 0x41cde3
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov edx, dword [esi + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
test byte [esi + 0x10], bl
jne 0x41cc65
mov eax, dword [edi + 0xc]
test eax, 0x200
je 0x41cc2e
test eax, 0x20000000
jne 0x41cc65
test eax, eax
jns 0x41cde3
mov ecx, dword [esi + 0x18]
mov edi, dword [sym.imp.USER32.dll_DrawEdge]
push 0x1003
push 1
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
mov eax, dword [esi + 0x18]
push 0x100c
push 4
lea edx, [esp + 0x2c]
push edx
push eax
call edi
jmp 0x41cde3
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.USER32.dll_DrawEdge]
push 0x100c
push 2
lea ecx, [esp + 0x2c]
push ecx
push edx
call edi
mov ecx, dword [esi + 0x18]
push 0x1003
push 8
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
jmp 0x41cde3
mov edx, dword [0x45a164]
test edx, edx
je 0x41cd2b
test eax, 0x200
je 0x41ccb7
test eax, 0x20000000
je 0x41ccb7
mov ebx, 3
jmp 0x41cce6
mov ecx, dword [esi + 0x10]
test cl, 4
je 0x41ccc6
mov ebx, 4
jmp 0x41cce6
test bl, cl
je 0x41ccd1
mov ebx, 3
jmp 0x41cce6
test eax, eax
jns 0x41ccdc
mov ebx, 2
jmp 0x41cce6
test cl, 0x10
je 0x41ccea
mov ebx, 5
mov dword [esp + 0x20], ebx
push ebx
push 1
push edx
call dword [0x45a144]
test eax, eax
je 0x41cd0b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
call dword [0x45a148]
mov eax, dword [esi + 0x18]
mov ecx, dword [0x45a164]
push 0
lea edx, [esp + 0x28]
push edx
push ebx
push 1
push eax
push ecx
call dword [0x45a14c]
jmp 0x41cde3
test byte [esi + 0x10], 0x10
je 0x41cd65
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
mov eax, dword [esi + 0x18]
push edi
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_FrameRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x10]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
test byte [esi + 0x10], bl
je 0x41cdac
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esi + 0x18]
mov edi, eax
push edi
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_FrameRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x41cdce
mov eax, dword [edi + 0xc]
mov edx, dword [esi + 0x18]
and eax, 0x8087ffff
or eax, 0x800000
shr eax, 0x13
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawFrameControl]
test byte [esi + 0x10], 0x10
je 0x41cde3
push 1
push 1
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
test edx, 0x200
je 0x41cf06
test edx, 0x400
je 0x41cf06
mov ecx, dword [esp + 0x2c]
test edx, 0x2000
je 0x41ce1a
mov eax, dword [esp + 0x24]
test edx, 0x1000
jne 0x41ce1d
lea eax, [ecx - 0x12]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
test edx, 0x20000000
jne 0x41ce4b
test byte [esi + 0x10], 1
jne 0x41ce4b
test edx, 0x40000000
je 0x41ce62
cmp dword [0x45a164], 0
jne 0x41ce62
inc dword [esp + 0x34]
inc eax
inc ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], eax
test byte [esi + 0x10], 4
jne 0x41ce75
mov eax, 8
test edx, 0x800
je 0x41ce7a
mov eax, 0x11
push eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov ecx, dword [esi + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call edi
push 8
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [esi + 0x18]
push eax
push edx
call edi
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax - 3]
mov dword [esp + 0x64], eax
add eax, 3
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x54], edx
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
add eax, 3
push 3
lea edx, [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_Polygon]
mov ecx, dword [esp + 0x44]
mov edx, dword [esi + 0x18]
push ecx
push edx
call edi
mov eax, dword [esi + 0x18]
push ebx
push eax
call edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
sub eax, 1
je 0x41cf23
sub eax, 1
je 0x41d045
sub eax, 3
jne 0x41d30d
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
movzx ecx, ax
mov eax, dword [edi + 0xc]
and eax, 0xff
push 0x100
lea edx, [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x14]
push edx
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x41d278
mov ebx, dword [esi + 0x1c]
mov ecx, edi
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x14], 0
test eax, 0x1000
jne 0x41cf83
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, ecx
add ebx, edx
mov edi, dword [esi + 0x24]
sub edi, ebx
sub edi, 0xc
test eax, 0x200
je 0x41cf9c
test eax, 0x400
je 0x41cf9c
sub edi, 0x12
test edi, edi
jle 0x41d278
lea edx, [esp + 0x34]
push edx
push 0
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
test eax, eax
je 0x41d278
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x41d00c
cmp word [esp + eax*2 + 0x6c], 0
je 0x41d00c
xor ecx, ecx
mov word [esp + eax*2 + 0x6c], cx
dec eax
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41d008
mov edx, 0x2e
mov word [esp + eax*2 + 0x6c], dx
inc ecx
dec eax
cmp ecx, 3
jl 0x41cff3
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x34]
cmp ecx, edi
jl 0x41d01a
mov ecx, edi
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
test eax, 0x4000
je 0x41d13c
test eax, 0x1000
je 0x41d124
mov eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x41d149
test byte [esi + 0x10], 4
jne 0x41d30d
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x4c], eax
mov eax, dword [0x45a164]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x28]
mov edi, 2
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ecx
mov ebx, edi
test eax, eax
je 0x41d099
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push 1
push ecx
push eax
call dword [0x45a150]
jmp 0x41d0b1
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2d
call ebx
mov edi, eax
push 0x2e
add edi, 2
call ebx
mov ebx, eax
add ebx, 2
neg ebx
push ebx
neg edi
push edi
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
test byte [esi + 0x10], 1
je 0x41d0e0
cmp dword [0x45a164], 0
jne 0x41d0e0
push 1
push 1
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x18]
mov edi, eax
push edi
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_FrameRect]
jmp 0x41d30d
mov eax, dword [esi + 0x1c]
sub eax, ecx
add eax, dword [esi + 0x24]
lea ecx, [ebx + 6]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jg 0x41d14d
mov ecx, eax
jmp 0x41d14d
mov eax, edi
sub eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [ebx + eax + 6]
mov edi, dword [esi + 0x20]
mov ebx, dword [esp + 0x38]
mov eax, ecx
sub eax, dword [esp + 0x18]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x28]
sub eax, edi
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [0x45a164]
sar eax, 1
add eax, edi
test edx, edx
jne 0x41d199
test byte [esi + 0x10], 1
jne 0x41d197
mov edi, dword [esp + 0x10]
mov edi, dword [edi + 0xc]
test edi, 0x200
je 0x41d199
test edi, 0x20000000
je 0x41d199
inc ecx
inc eax
mov edi, dword [esp + 0x34]
add edi, ecx
mov dword [esp + 0x5c], edi
lea edi, [ebx + eax]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x10]
test dword [edi + 0xc], 0x100
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
je 0x41d21d
mov edi, dword [0x45a168]
test edi, edi
je 0x41d21d
mov eax, dword [esp + 0x20]
cmp eax, 4
jne 0x41d1fa
test edx, edx
je 0x41d1fa
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esi + 0x18]
push 0
push 0x120
push 0xffffffffffffffff
lea eax, [esp + 0x7c]
push eax
push 4
push 1
push ecx
push edx
call dword [0x45a154]
jmp 0x41d278
lea edx, [esp + 0x54]
push edx
mov edx, dword [esi + 0x18]
push 0
push 0x120
push 0xffffffffffffffff
lea ecx, [esp + 0x7c]
push ecx
push eax
push 1
push edx
push edi
call dword [0x45a154]
jmp 0x41d278
test edx, edx
je 0x41d248
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x24]
push 0
push 0x120
push 0xffffffffffffffff
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esi + 0x18]
push eax
push 1
push ecx
push edx
call dword [0x45a154]
jmp 0x41d278
mov edx, dword [esi + 0x10]
and edx, 4
add edx, edx
add edx, edx
add edx, edx
or edx, 2
push edx
mov edx, dword [esp + 0x38]
push ebx
push edx
push eax
push ecx
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x84]
push eax
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_DrawStateW]
mov edx, dword [esp + 0x10]
test dword [edx + 0xc], 0x1000
jne 0x41d30d
test byte [esi + 0x10], 4
jne 0x41d30d
cmp dword [esp + 0x44], 0xffffffff
mov edi, dword [esp + 0x18]
jne 0x41d2af
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
sub eax, ebx
sub eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, ebx
jmp 0x41d2b6
mov ecx, dword [esi + 0x1c]
add ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
sub eax, ebx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
cmp dword [0x45a164], 0
lea eax, [eax + ebx + 1]
jne 0x41d2f1
test byte [esi + 0x10], 1
jne 0x41d2ef
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0xc]
test edx, 0x200
je 0x41d2f1
test edx, 0x20000000
je 0x41d2f1
inc ecx
inc eax
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
push 3
push 0
push 0
push edi
push edi
push edx
push eax
mov eax, dword [esi + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [esp + 0x10]
cmp dword [eax], 5
je 0x41d35f
test dword [eax + 0xc], 0x100
jne 0x41d35f
mov eax, dword [esi + 0x10]
test al, 0x10
je 0x41d35f
test eax, 0x200
jne 0x41d35f
cmp dword [0x45a164], 0
jne 0x41d341
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea ecx, [esp + 0x2c]
push ecx
jmp 0x41d34a
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00433c32
mov esp, ebp
pop ebp
ret