Function at 0x402770
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bea36
push eax
mov dword fs:[0], esp
sub esp, 0xfc
cmp dword [ebp + 0xc], 0x110
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x4027b3
mov ebx, dword [ebp + 0x14]
push ebx
push 8
mov edi, ebx
push esi
mov dword [ebp - 0x10], edi
mov dword [ebx], esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x4027c4
push 8
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov edi, eax
test edi, edi
je 0x402f58
mov eax, dword [ebp + 0xc]
cmp eax, 0x24
ja 0x402a8c
je 0x402996
sub eax, 2
je 0x402f58
sub eax, 3
je 0x402801
sub eax, 0xb
jne 0x402f58
mov ecx, edi
call fcn.00401930
jmp 0x402f58
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x6ee
push esi
call edi
lea ecx, [ebp - 0x1c]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [ebp - 0x1c]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
push esi
call edi
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 0x14]
push 2
lea edx, [ebp - 0x2c]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0x965
push esi
call edi
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 0x14]
push 2
lea edx, [ebp - 0x4c]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
lea ecx, [eax + eax*2]
sub edx, ecx
sub edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push edx
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x34]
sub ecx, edx
mov edx, dword [ebp - 0x1c]
push ecx
push eax
push edx
push ebx
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
call ebx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
push 0
push eax
sub edx, eax
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
push 0x6ef
push esi
call edi
push eax
call ebx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
push 0
push eax
push ecx
sub edx, eax
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push edx
lea ecx, [ecx + eax*2]
push ecx
push 0x6f0
push esi
call edi
push eax
call ebx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
push 0
push eax
sub edx, eax
mov eax, dword [ebp - 0x34]
sub edx, dword [ebp - 0x18]
push ecx
sub eax, ecx
sub eax, dword [ebp - 0x1c]
push edx
push eax
push 2
push esi
call edi
push eax
call ebx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
push 0
push eax
sub edx, eax
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
mov edx, dword [ebp - 0x34]
add ecx, eax
add ecx, ecx
sub edx, ecx
push edx
push 1
push esi
call edi
push eax
call ebx
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x44]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ebp - 0x20]
push 0
sub eax, dword [ebp - 0x18]
push ecx
add eax, dword [ebp - 0x30]
push edi
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
sub edx, eax
neg edx
sub edx, ecx
sub edx, edi
add edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 0x14]
push eax
call ebx
push 0x485
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x402f58
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
xor eax, eax
push 1
push esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp + 8], eax
call edi
mov eax, dword [ebp + 8]
push 2
lea edx, [ebp - 0x3c]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0x965
push esi
call ebx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp + 8], eax
call edi
mov eax, dword [ebp + 8]
push 2
lea edx, [ebp - 0x1c]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0x6ee
push esi
call ebx
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
push 2
lea edx, [ebp - 0x2c]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
push eax
push esi
call edi
lea ecx, [ebp - 0x4c]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
lea ecx, [edx + eax*2]
add ecx, ecx
add ecx, ecx
mov edx, ecx
sub edx, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x14]
sub edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x30]
add edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x54]
mov dword [ecx + 0x18], edx
mov edx, dword [ebp - 0x28]
lea eax, [edx + eax*2]
lea eax, [eax + eax*2]
mov dword [ecx + 0x1c], eax
jmp 0x402f58
sub eax, 0x4e
je 0x402eee
sub eax, 0xc2
je 0x402bbe
sub eax, 1
jne 0x402f58
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
jne 0x402f58
movzx eax, ax
cmp eax, 8
jg 0x402af9
je 0x402b9f
sub eax, 1
je 0x402ada
sub eax, 1
je 0x402b9f
jmp 0x402f58
mov ecx, edi
call fcn.004024c0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
sub eax, 0x6ef
je 0x402b87
sub eax, 1
jne 0x402f58
mov edx, dword [edi + 4]
push eax
push eax
push 0x1009
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x820
call fcn.004412a0
add esp, 4
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x402b42
mov ecx, eax
call fcn.004013e0
jmp 0x402b44
xor eax, eax
push edi
push 0x401b40
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x14], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x402b68
push 1
call fcn.004017b0
mov dword [edi + 0x14], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x50b384]
push 0
push 0xabbe
push 0x112
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, edi
call fcn.00401930
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x50b39c]
call fcn.00406f30
mov ecx, dword [0x50b384]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 8
je 0x402bef
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x50b3a8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edx
push 1
push 0x80
push esi
call ebx
mov eax, dword [0x50b3ac]
push eax
push 0
push 0x80
push esi
call ebx
mov ecx, dword [0x50b3a8]
push ecx
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x501
cmp word [0x4ec108], dx
sbb eax, eax
inc eax
push eax
push 0x965
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x6ee
push esi
call edi
mov ecx, dword [ebp - 0x10]
push 0x20
mov edi, eax
xor eax, eax
push 0x20
push 0x1036
lea edx, [ebp - 0x108]
mov dword [ebp - 0x7c], eax
push edi
mov dword [ecx + 4], edi
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x7c], edx
call ebx
push 0x4400
push 0x4400
push 0x1036
push edi
call ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 0xf
lea edx, [ebp - 0x108]
add ecx, 0x3c
push 0x4c0e10
push edx
mov dword [ebp - 0x80], ecx
call fcn.00401a10
add esp, 8
lea eax, [ebp - 0x88]
push eax
push 0
push 0x1061
push edi
call ebx
mov dword [ebp - 0x80], 0x2d
mov dword [ebp - 0x84], 2
push str.Type
lea ecx, [ebp - 0x108]
push ecx
call fcn.00401a10
add esp, 8
lea edx, [ebp - 0x88]
push edx
push 1
push 0x1061
push edi
call ebx
lea eax, [ebp - 0x108]
push str.Title
push eax
mov dword [ebp - 0x80], 0xc8
mov dword [ebp - 0x84], 0
call fcn.00401a10
add esp, 8
lea ecx, [ebp - 0x88]
push ecx
push 2
push 0x1061
push edi
call ebx
lea edx, [ebp - 0x108]
push str.Image_name
push edx
mov dword [ebp - 0x80], 0x78
call fcn.00401a10
add esp, 8
lea eax, [ebp - 0x88]
push eax
push 3
push 0x1061
push edi
call ebx
lea ecx, [ebp - 0x108]
push str.Image_path
push ecx
mov dword [ebp - 0x80], 0xc8
call fcn.00401a10
add esp, 8
lea edx, [ebp - 0x88]
push edx
push 4
push 0x1061
push edi
call ebx
lea eax, [ebp - 0x108]
push str.HWND
push eax
mov dword [ebp - 0x80], 0x5a
call fcn.00401a10
add esp, 8
lea ecx, [ebp - 0x88]
push ecx
push 5
push 0x1061
push edi
call ebx
lea edx, [ebp - 0x108]
push str.Class
push edx
mov dword [ebp - 0x80], 0xc8
call fcn.00401a10
add esp, 8
lea eax, [ebp - 0x88]
push eax
push 6
push 0x1061
push edi
call ebx
push 0x820
call fcn.004412a0
add esp, 4
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x402e2b
mov ecx, eax
call fcn.004013e0
jmp 0x402e2d
xor eax, eax
mov ebx, dword [ebp - 0x10]
push 1
push str.CAttachDlg::AttachDlgEnumWin::Begin
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x14], eax
call fcn.0049ed90
add esp, 8
push ebx
push 0x401b40
call dword [sym.imp.USER32.dll_EnumWindows]
push 1
push str.CAttachDlg::AttachDlgEnumWin::End
call fcn.0049ed90
mov ecx, dword [ebx + 0x14]
add esp, 8
test ecx, ecx
je 0x402e72
push 1
call fcn.004017b0
push 0
push 0
push 5
push esi
mov dword [ebx + 0x14], 0
call fcn.00402770
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x4c]
push ecx
push esi
call ebx
mov eax, dword [0x50b384]
lea edx, [ebp - 0x5c]
push edx
push eax
call ebx
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
push 0
mov eax, ecx
sub eax, edx
push eax
mov eax, ebx
sub eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x50]
sub eax, ecx
add eax, dword [ebp - 0x58]
add eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x54]
sub eax, ebx
add eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x4c]
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x402f58
test ebx, ebx
je 0x402f58
cmp dword [ebx + 4], 0x6ee
jne 0x402f58
cmp dword [ebx + 8], 0xfffffffd
jne 0x402f58
push 0
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x50b384]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push ecx
push edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x402f58
mov ecx, dword [0x50b39c]
push 0
push 0x202
push 0x200
call fcn.00408350
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10