Function at 0x408890
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x8e8
mov eax, dword [0x5f1014]
xor eax, esp
mov dword [esp + 0x8e4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0x3c
mov dword [esp + 0x2c], eax
mov edi, ecx
lea eax, [esp + 0xb0]
mov dword [esp + 0x40], edi
push 0
push eax
call fcn.0057b850
add esp, 0xc
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
lea eax, [esp + 0xac]
push eax
push 0x3c
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [edi + 0x64]
push eax
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x28]
mov al, byte [edi + 0x170]
push 0x48
push 0x5a
push dword [esi + 0x18]
mov byte [esp + 0xcf], al
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push dword [edi + 0x168]
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0xac], eax
lea eax, [esi + 0x1c]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esi + 0x10]
mov ecx, edx
and ecx, 0x10
mov eax, edx
mov dword [esp + 0x38], ecx
xor ecx, ecx
and eax, 6
setne cl
mov dword [esp + 0x30], ecx
test eax, 6
jne 0x40897a
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edx, dword [esi + 0x10]
neg eax
sbb ecx, ecx
inc ecx
mov dword [esp + 0x30], ecx
and edx, 1
cmp dword [edi + 0x50], 0
mov dword [esp + 0x34], edx
je 0x40899e
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [edi + 0x4c], 0
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x4089f1
cmp dword [edi + 0x4c], 0
je 0x4089b8
push dword [edi + 0x298]
call fcn.0041fff0
jmp 0x4089f1
mov edx, dword [ecx]
mov dword [ecx + 0x51c], 0
test edx, edx
je 0x4089f1
push dword [ecx + 0x410]
mov eax, dword [ecx + 0x63c]
push dword [ecx + 0x40c]
shl eax, 6
push eax
mov eax, dword [ecx + 0x638]
shl eax, 6
push eax
push edx
call fcn.00524ec0
add esp, 0x14
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
sub esi, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x18]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
push esi
push dword [eax + 0x18]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x40], eax
test eax, eax
je 0x4093b2
push eax
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x2e4], 0
mov edx, dword [edi + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x2c], edx
je 0x408a98
mov ecx, dword [edi + 0x38]
lea eax, [esp + 0x4e8]
push 0x400
push 0
push eax
mov dword [esp + 0x1c], ecx
call fcn.0057b850
add esp, 0xc
lea eax, [esp + 0x4e8]
push 0x400
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
jmp 0x408aa7
cmp dword [edi + 0x2e8], 0
cmovne eax, dword [edi + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0xbc], 0x190
cmp edx, 0xffffffff
jne 0x408ac0
push ecx
push eax
call fcn.0040a070
mov edx, eax
cmp dword [edi + 0x4c], 0
mov ecx, dword [esp + 0x10]
cmovne ecx, edx
cmp dword [esp + 0x30], 0
je 0x408b6a
mov ecx, dword [edi + 0x1c]
mov edx, ecx
movzx eax, cl
mov dword [esp + 0xc], eax
movzx eax, cx
shr eax, 8
shr edx, 0x10
mov dword [esp + 0x18], eax
movzx eax, dl
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x408b72
mov eax, dword [esp + 0xc]
add eax, 0xffffff87
cmp eax, 0x21
ja 0x408b61
mov eax, dword [esp + 0x18]
add eax, 0xffffff87
cmp eax, 0x21
ja 0x408b61
sub dl, 0x79
cmp dl, 0x21
ja 0x408b61
mov eax, 0x2fd
sub eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x18]
sub eax, dword [esp + 0xc]
imul ecx, eax, 0x64
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx eax, al
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
jmp 0x408b72
mov eax, ecx
xor eax, 0xffffff
jmp 0x408b6e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
push dword [esp + 0x1c]
push esi
push ecx
push ecx
push dword [esp + 0x24]
mov ecx, edi
call fcn.004096e0
cmp dword [edi + 0x294], 1
mov eax, dword [edi + 0x290]
mov ecx, dword [edi + 0x28c]
push eax
push ecx
push dword [esp + 0x24]
push esi
jne 0x408ba4
push 2
jmp 0x408ba6
push 1
push 1
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov esi, dword [esp + 0x14]
push eax
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push 0x400
lea eax, [esp + 0xec]
push 0
push eax
call fcn.0057b850
add esp, 0xc
lea eax, [esp + 0xe8]
push 0x400
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [esp + 0x30], 0
je 0x408bfc
push dword [esp + 0x24]
jmp 0x408bff
push dword [edi + 0x10]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [esp + 0x60]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x74]
movaps xmmword [esp + 0x54], xmm0
push eax
movaps xmmword [esp + 0x78], xmm0
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esp + 0x38], 0
je 0x408c50
mov eax, dword [esp + 0xbc]
mov ecx, 0x2bc
cmp dword [edi + 0x29c], 0
cmovne eax, ecx
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push esi
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [edi + 0x2a4]
mov dword [esp + 0x44], eax
lea ecx, [esi - 1]
cmp ecx, 2
ja 0x408c9e
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x408c9e
lea eax, [esp + 0x80]
push eax
push dword [edi + 0x58]
push ecx
call fcn.0041ff30
mov edx, dword [edi + 0x2a4]
mov esi, edx
jmp 0x408cc2
mov edx, esi
mov dword [esp + 0xc], edx
cmp esi, 4
jne 0x408cdc
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x408cbd
lea eax, [esp + 0x80]
push eax
call fcn.0040be50
mov edx, 4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0xc], edx
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0xe8]
xorps xmm0, xmm0
lea eax, [ecx + 1]
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0x80], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408cf8
sub ecx, dword [esp + 0x80]
je 0x408d34
push 0x400
lea eax, [esp + 0x94]
push eax
push ecx
lea eax, [esp + 0xf4]
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [edi + 0x2a4]
mov esi, edx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
sub eax, dword [esp + 0x50]
sub ecx, dword [esp + 0x54]
cmp dword [edi + 0x58], 0
mov dword [esp + 0x18], eax
jg 0x408d6b
mov edx, esi
mov dword [esp + 0xc], edx
cmp esi, 4
jge 0x408d6b
xor ecx, ecx
mov dword [esp + 0xc], edx
xorps xmm0, xmm0
mov dword [esp + 0x18], ecx
movaps xmmword [esp + 0x50], xmm0
xor eax, eax
test edx, edx
cmovne eax, ecx
xor ecx, ecx
test edx, edx
mov dword [esp + 0x1c], eax
cmovne ecx, dword [esp + 0x18]
cmp dword [edi + 0x2dc], 0
jle 0x408dcc
mov esi, dword [edi + 0x2e0]
mov dword [esp + 0x1c], eax
test esi, esi
jle 0x408dcc
mov eax, dword [esp + 0x9c]
mov ecx, esi
mov edx, dword [edi + 0x288]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x98]
sub esi, dword [esp + 0x90]
sub eax, dword [esp + 0x94]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
jmp 0x408e15
mov edx, dword [esp + 0x9c]
sub edx, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
sub esi, dword [esp + 0x90]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 0x288]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x80], ecx
test eax, eax
je 0x408e1d
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x408e1d
test eax, eax
je 0x408e1d
test esi, esi
jne 0x408e25
mov dword [esp + 0x10], 0
test edx, edx
jle 0x40940f
mov eax, dword [edi + 0x284]
dec eax
cmp eax, 3
ja case.default.0x408e3d
jmp dword [eax*4 + 0x4094ac]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
add eax, esi
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x58]
test eax, eax
jg 0x408e67
cmp edx, 4
jne 0x408e95
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x80]
sub eax, dword [esp + 0x64]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
mov eax, esi
mov dword [esp + 0xc], 0x21
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x5c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x6c]
dec eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], eax
jmp 0x40902a
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x10]
sub eax, esi
sub eax, ecx
sub eax, dword [esp + 0x60]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x70], eax
lea edx, [eax + esi]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x58]
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], esi
test eax, eax
jg 0x408f15
cmp dword [esp + 0xc], 4
je 0x408f15
mov dword [esp + 0xc], 0x25
jmp 0x40902a
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], eax
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0xc], 0x26
jmp 0x40902a
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
sub eax, esi
sub eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x64]
cdq
sub eax, edx
mov edx, dword [esp + 0x60]
sar eax, 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edx
lea ecx, [eax + esi]
mov eax, dword [edi + 0x58]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], esi
test eax, eax
jg 0x408f82
cmp dword [esp + 0xc], 4
jne 0x408f9c
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0xc], 0x29
jmp 0x40902a
mov esi, dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x74]
push eax
call esi
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x54]
push eax
call esi
mov dword [esp + 0xc], 0x25
jmp 0x40902a
add esi, dword [esp + 0x10]
mov eax, dword [edi + 0x58]
add esi, ecx
test eax, eax
jg 0x408fed
cmp edx, 4
je 0x408fed
mov dword [esp + 0xc], 0x25
jmp 0x40901e
mov eax, dword [esp + 0x68]
sub eax, esi
mov dword [esp + 0xc], 0x24
sub eax, dword [esp + 0x60]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x50], eax
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
xorps xmm0, xmm0
lea ecx, [esp + 0xe8]
movlpd qword [esp + 0x1c], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409040
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
sub ecx, edx
lea eax, [esp + 0xec]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea eax, [esp + 0x80]
xorps xmm0, xmm0
push eax
push dword [edi + 0x58]
movlpd qword [esp + 0x88], xmm0
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.0041ff30
mov ecx, dword [edi + 0x40]
mov edx, dword [esp + 0x80]
test ecx, ecx
jle 0x40909a
mov eax, dword [esp + 0x50]
add eax, edx
mov dword [esp + 0x58], eax
sub ecx, 1
je 0x409135
sub ecx, 1
jne 0x409195
mov eax, dword [edi + 0x284]
cmp eax, 1
je 0x4090f4
cmp eax, 3
je 0x4090f4
mov ecx, dword [esp + 0x68]
cmp eax, 2
jne 0x4090da
sub ecx, edx
mov edx, dword [esp + 0x1c]
add ecx, 0xfffffffe
mov eax, ecx
sub eax, edx
sub eax, dword [edi + 0x288]
jmp 0x409108
mov edx, dword [esp + 0x1c]
sub ecx, edx
add ecx, 0xfffffffe
mov eax, ecx
sub ecx, dword [esp + 0x80]
sub ecx, dword [edi + 0x288]
jmp 0x409108
mov eax, dword [esp + 0x68]
mov ecx, eax
sub ecx, edx
mov edx, dword [esp + 0x1c]
sub eax, edx
sub ecx, 2
sub eax, 2
mov dword [esp + 0x70], eax
add eax, 2
add eax, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x80]
add eax, 2
add eax, ecx
mov ecx, dword [esp + 0xc]
and ecx, 0xfffffffe
or ecx, 2
mov dword [esp + 0xc], ecx
jmp 0x409191
mov eax, dword [edi + 0x284]
cmp eax, 1
je 0x409167
cmp eax, 3
je 0x409167
mov ecx, dword [edi + 0x288]
cmp eax, 2
jne 0x409156
add ecx, dword [esp + 0x1c]
jmp 0x40916e
mov eax, dword [edi + 0x288]
mov ecx, 2
add eax, ecx
add eax, edx
jmp 0x40916e
mov ecx, 2
mov eax, ecx
mov esi, dword [esp + 0x1c]
add esi, 2
mov dword [esp + 0x70], eax
add eax, esi
mov dword [esp + 0x50], ecx
mov esi, dword [esp + 0x14]
mov dword [esp + 0x78], eax
lea eax, [ecx + 2]
add eax, edx
and dword [esp + 0xc], 0xfffffffc
mov dword [esp + 0x58], eax
mov ecx, dword [edi + 0x2a4]
lea eax, [ecx - 1]
cmp eax, 2
ja 0x4093d0
cmp dword [edi + 0x5c], 0
je 0x4093d0
lea ecx, [esp + 0xe8]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4091c0
sub ecx, edx
jne 0x4091db
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esp + 0x34], 0
je 0x4091f2
push 1
push 1
lea eax, [esp + 0x58]
push eax
mov eax, dword [sym.imp.USER32.dll_OffsetRect]
call eax
cmp dword [esp + 0x30], 0
je 0x4091ff
push dword [esp + 0x24]
jmp 0x409202
push dword [edi + 0x30]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [edi + 0x5c]
mov eax, dword [edi + 0x2dc]
mov edx, dword [edi + 0x2e0]
mov dword [ecx + 0x524], eax
mov dword [ecx + 0x528], edx
mov eax, dword [edi + 0x2a4]
sub eax, 1
je 0x409291
sub eax, 1
je 0x409272
sub eax, 1
jne 0x4092aa
mov esi, dword [edi + 0x2cc]
mov edi, dword [edi + 0x5c]
mov eax, dword [esp + 0x3c]
add eax, 0x2a8
push eax
push dword [edi]
call fcn.00521760
add esp, 4
mov dword [edi + 4], eax
lea eax, [esp + 0x54]
push esi
mov esi, dword [esp + 0x1c]
push ecx
push eax
push esi
mov ecx, edi
call fcn.0041fa40
mov edi, dword [esp + 0x3c]
jmp 0x4092aa
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x2cc]
mov eax, dword [edi + 0x58]
push ecx
push edx
mov dword [ecx + 4], eax
lea eax, [esp + 0x58]
push ecx
push eax
push esi
call fcn.0041fa40
jmp 0x4092aa
push ecx
push dword [edi + 0x2cc]
lea eax, [esp + 0x58]
push dword [edi + 0x58]
push ecx
mov ecx, dword [edi + 0x5c]
push eax
push esi
call fcn.0041f9c0
cmp dword [esp + 0x30], 0
je 0x4093c8
push dword [esp + 0x24]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x34], 0
je 0x4092da
push 1
push 1
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [esp + 0xe8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4092e4
push edi
lea eax, [esp + 0x74]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0xf4]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [esp + 0x44]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call edi
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x38], 0
je 0x409363
mov eax, dword [0x5f1ac0]
cmp dword [eax + 0x214], 0
je 0x409363
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x80]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
push 0xcc0020
push 0
push 0
push esi
push eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x40]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [eax + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x4c]
push esi
call edi
push dword [esp + 0x2c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x40]
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x8ec]
pop edi
pop esi
xor ecx, esp
call fcn.004e389c
mov esp, ebp
pop ebp
ret 8
push dword [edi + 0x10]
jmp 0x4092b9
cmp ecx, 4
jne 0x4092c0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4092c0
cmp dword [esp + 0x34], 0
je 0x4093fe
push 1
push 1
lea eax, [esp + 0x58]
push eax
mov eax, dword [sym.imp.USER32.dll_OffsetRect]
call eax
mov ecx, dword [edi + 8]
push ecx
lea eax, [esp + 0x54]
push eax
push esi
call fcn.0040bc70
jmp 0x4092c0
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [edi + 0x40]
sub eax, 1
je 0x409453
sub eax, 1
jne 0x40949b
push eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x7c]
sub eax, 2
push eax
lea eax, [esp + 0x78]
push eax
mov eax, dword [sym.imp.USER32.dll_OffsetRect]
call eax
mov esi, dword [esp + 0x14]
mov edi, 0x26
jmp 0x4092c4
mov eax, dword [edi + 0x284]
cmp eax, 1
je 0x409485
cmp eax, 3
je 0x409485
cmp eax, 2
je 0x409485
mov eax, dword [esp + 0x58]
mov edi, 0x24
sub eax, dword [esp + 0x50]
mov esi, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x70], eax
jmp 0x4092c4
mov esi, dword [esp + 0x14]
mov edi, 0x24
mov dword [esp + 0x70], 2
jmp 0x4092c4
mov esi, dword [esp + 0x14]
mov edi, 0x25
jmp 0x4092c4