Function at 0x4074c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
mov esi, ecx
call edi
push 0x11
mov dword [esp + 0x40], eax
call edi
xor edx, edx
mov dword [esp + 0x38], eax
cmp dword [esi + 0x6c], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
jne 0x407521
pop edi
mov eax, 0x80004005
pop esi
add esp, 0x38
ret 8
mov ecx, dword [esi + 0xc8]
mov edi, dword [esi + 0xb8]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, dword [esi + 0xc0]
mov eax, ebx
sub eax, ecx
mov ecx, dword [esi + 0xb0]
sub eax, ebp
mov ebp, dword [esp + 0x50]
sub eax, edi
mov edi, dword [esi + 0xc4]
sub eax, ecx
mov dword [esi + 0xd0], eax
mov eax, dword [esi + 0xcc]
mov ecx, ebp
sub ecx, eax
mov eax, dword [esi + 0xbc]
sub ecx, edi
mov edi, dword [esi + 0xb4]
sub ecx, eax
mov eax, dword [esi + 0x70]
sub ecx, edi
cmp eax, edx
mov dword [esi + 0xd4], ecx
mov dword [esp + 0x4c], edx
jbe 0x407be7
xor edi, edi
jmp 0x407592
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + edi + 0x68]
add eax, edi
cmp ecx, 0x800
jg 0x407ae0
je 0x407997
cmp ecx, 0x100
je 0x40785c
cmp ecx, 0x200
je 0x407717
cmp ecx, 0x400
jne 0x407b54
mov ecx, dword [eax + 0x80]
test ecx, ecx
jne 0x4075fd
mov dword [eax + 0x40], edx
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x6c]
mov ecx, ebx
sub ecx, eax
mov dword [edi + edx + 0x48], ecx
mov eax, dword [esi + 0x6c]
mov dword [edi + eax + 0x44], 0
jmp 0x4076d2
mov ecx, dword [eax + 0x64]
test cl, 0x40
je 0x407632
mov dword [eax + 0x40], edx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, ebx
sub ecx, edx
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x48], ecx
mov ecx, dword [esi + 0x6c]
mov dword [edi + ecx + 0x44], eax
mov edx, dword [esi + 0x6c]
add eax, dword [edi + edx + 0x74]
mov dword [esp + 0x10], eax
jmp 0x4076d2
test cl, cl
jns 0x40767a
mov ecx, dword [esi + 0xc0]
add ecx, dword [esp + 0x24]
mov dword [eax + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0xc8]
mov edx, ebx
sub edx, ecx
sub edx, eax
mov eax, dword [esi + 0x6c]
mov dword [edi + eax + 0x48], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc4]
mov edx, dword [esi + 0x6c]
add ecx, eax
mov dword [edi + edx + 0x44], ecx
mov ecx, dword [esi + 0x6c]
add eax, dword [edi + ecx + 0x74]
mov dword [esp + 0x1c], eax
jmp 0x4076d2
mov edx, dword [esi + 0xc0]
add edx, dword [esp + 0x30]
add edx, dword [esi + 0xb0]
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x40], edx
mov edx, dword [esi + 0xc8]
mov eax, ebx
sub eax, ecx
mov ecx, dword [esi + 0xb8]
sub eax, edx
sub eax, ecx
mov ecx, dword [esi + 0x6c]
mov dword [edi + ecx + 0x48], eax
mov eax, dword [esi + 0xb4]
mov edx, dword [esi + 0xc4]
mov ecx, dword [esi + 0x6c]
add edx, eax
mov eax, dword [esp + 0x20]
add edx, eax
mov dword [edi + ecx + 0x44], edx
mov edx, dword [esi + 0x6c]
add eax, dword [edi + edx + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x6c]
mov edx, dword [eax + edi + 0x44]
mov ecx, dword [eax + edi + 0x74]
add eax, edi
add ecx, edx
mov dword [eax + 0x4c], ecx
mov edx, dword [esi + 0x6c]
mov ecx, dword [edi + edx]
test ecx, ecx
lea eax, [edi + edx]
je 0x407b54
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x407b54
add eax, 0x40
push eax
push 0xfffffffffffffff2
push 0x214
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x407b54
mov ecx, dword [eax + 0x80]
test ecx, ecx
jne 0x407743
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x48], ebx
mov eax, dword [esi + 0x6c]
mov dword [edi + eax + 0x44], ecx
mov eax, dword [esp + 0x18]
mov edx, ebp
sub edx, eax
mov eax, dword [esi + 0x6c]
mov dword [edi + eax + 0x4c], edx
jmp 0x40781a
mov ecx, dword [eax + 0x64]
test cl, 0x40
mov edx, ebx
je 0x407780
mov ecx, dword [esp + 0x14]
sub edx, ecx
mov dword [eax + 0x48], edx
mov eax, dword [esi + 0x6c]
mov edx, dword [esp + 0x10]
mov dword [edi + eax + 0x44], edx
mov edx, dword [esp + 0x18]
mov eax, ebp
sub eax, edx
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x4c], eax
mov eax, dword [esi + 0x6c]
add ecx, dword [edi + eax + 0x78]
mov dword [esp + 0x14], ecx
jmp 0x40781a
test cl, cl
jns 0x4077c6
mov ecx, dword [esp + 0x28]
sub edx, ecx
sub edx, dword [esi + 0xc8]
mov dword [eax + 0x48], edx
mov eax, dword [esi + 0xc4]
add eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x44], eax
mov edx, dword [esi + 0xcc]
mov eax, ebp
sub eax, edx
sub eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x4c], eax
mov eax, dword [esi + 0x6c]
add ecx, dword [edi + eax + 0x78]
mov dword [esp + 0x28], ecx
jmp 0x40781a
mov ecx, dword [esp + 0x34]
sub edx, ecx
sub edx, dword [esi + 0xc8]
sub edx, dword [esi + 0xb8]
mov dword [eax + 0x48], edx
mov edx, dword [esi + 0xb4]
mov eax, dword [esi + 0xc4]
add eax, edx
add eax, dword [esp + 0x20]
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x44], eax
mov edx, dword [esi + 0xcc]
mov eax, ebp
sub eax, edx
sub eax, dword [esi + 0xbc]
sub eax, dword [esp + 0x38]
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x4c], eax
mov eax, dword [esi + 0x6c]
add ecx, dword [edi + eax + 0x78]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x6c]
mov edx, dword [edi + ecx + 0x48]
lea eax, [edi + ecx]
sub edx, dword [eax + 0x78]
mov dword [eax + 0x40], edx
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + edi]
add eax, edi
test ecx, ecx
je 0x407b54
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x407b54
add eax, 0x40
push eax
push 0xfffffffffffffff1
push 0x214
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x407b54
mov ecx, dword [eax + 0x80]
test ecx, ecx
jne 0x40788c
mov edx, dword [esp + 0x10]
mov dword [eax + 0x40], 0
mov ecx, dword [esi + 0x6c]
mov dword [edi + ecx + 0x44], edx
mov ecx, dword [esp + 0x18]
mov eax, ebp
sub eax, ecx
mov ecx, dword [esi + 0x6c]
mov dword [edi + ecx + 0x4c], eax
jmp 0x407955
mov ecx, dword [eax + 0x64]
test cl, 0x40
je 0x4078c1
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x40], edx
mov eax, dword [esi + 0x6c]
mov dword [edi + eax + 0x44], ecx
mov ecx, dword [esp + 0x18]
mov eax, ebp
sub eax, ecx
mov ecx, dword [esi + 0x6c]
mov dword [edi + ecx + 0x4c], eax
mov eax, dword [esi + 0x6c]
add edx, dword [edi + eax + 0x70]
mov dword [esp + 0x3c], edx
jmp 0x407955
test cl, cl
mov edx, dword [esi + 0xc0]
jns 0x407907
mov ecx, dword [esp + 0x24]
add edx, ecx
mov dword [eax + 0x40], edx
mov eax, dword [esi + 0xc4]
add eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x44], eax
mov edx, dword [esi + 0xcc]
mov eax, ebp
sub eax, edx
sub eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x4c], eax
mov eax, dword [esi + 0x6c]
add ecx, dword [edi + eax + 0x70]
mov dword [esp + 0x24], ecx
jmp 0x407955
mov ecx, dword [esp + 0x30]
add edx, ecx
add edx, dword [esi + 0xb0]
mov dword [eax + 0x40], edx
mov edx, dword [esi + 0xb4]
mov eax, dword [esi + 0xc4]
add eax, edx
add eax, dword [esp + 0x20]
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x44], eax
mov edx, dword [esi + 0xcc]
mov eax, ebp
sub eax, edx
sub eax, dword [esi + 0xbc]
sub eax, dword [esp + 0x38]
mov edx, dword [esi + 0x6c]
mov dword [edi + edx + 0x4c], eax
mov eax, dword [esi + 0x6c]
add ecx, dword [edi + eax + 0x70]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x6c]
mov edx, dword [edi + ecx + 0x70]
lea eax, [edi + ecx]
add edx, dword [eax + 0x40]
mov dword [eax + 0x48], edx
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + edi]
add eax, edi
test ecx, ecx
je 0x407b54
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x407b54
add eax, 0x40
push eax
push 0xfffffffffffffff0
push 0x214
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x407b54
mov ecx, dword [eax + 0x80]
test ecx, ecx
jne 0x4079bf
mov dword [eax + 0x40], edx
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x6c]
mov ecx, ebx
sub ecx, eax
mov dword [edi + edx + 0x48], ecx
mov eax, dword [esi + 0x6c]
mov dword [edi + eax + 0x4c], ebp
jmp 0x407aa0
mov ecx, dword [eax + 0x64]
test cl, 0x40
je 0x4079f8
mov dword [eax + 0x40], edx
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x6c]
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0x18]
mov dword [edi + edx + 0x48], ecx
mov edx, dword [esi + 0x6c]
mov ecx, ebp
sub ecx, eax
mov dword [edi + edx + 0x4c], ecx
mov ecx, dword [esi + 0x6c]
add eax, dword [edi + ecx + 0x7c]
mov dword [esp + 0x18], eax
jmp 0x407aa0
test cl, cl
jns 0x407a44
mov edx, dword [esi + 0xc0]
add edx, dword [esp + 0x24]
mov dword [eax + 0x40], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0xc8]
mov eax, ebx
sub eax, edx
sub eax, ecx
mov ecx, dword [esi + 0x6c]
mov dword [edi + ecx + 0x48], eax
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0x6c]
mov edx, ebp
sub edx, eax
mov eax, dword [esp + 0x2c]
sub edx, eax
mov dword [edi + ecx + 0x4c], edx
mov edx, dword [esi + 0x6c]
add eax, dword [edi + edx + 0x7c]
mov dword [esp + 0x2c], eax
jmp 0x407aa0
mov ecx, dword [esi + 0xc0]
add ecx, dword [esp + 0x30]
add ecx, dword [esi + 0xb0]
mov dword [eax + 0x40], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0xc8]
mov edx, ebx
sub edx, eax
mov eax, dword [esi + 0xb8]
sub edx, ecx
sub edx, eax
mov eax, dword [esi + 0x6c]
mov dword [edi + eax + 0x48], edx
mov edx, dword [esi + 0xcc]
mov eax, dword [esi + 0xbc]
mov ecx, ebp
sub ecx, edx
mov edx, dword [esi + 0x6c]
sub ecx, eax
mov eax, dword [esp + 0x38]
sub ecx, eax
mov dword [edi + edx + 0x4c], ecx
mov ecx, dword [esi + 0x6c]
add eax, dword [edi + ecx + 0x7c]
mov dword [esp + 0x38], eax
mov edx, dword [esi + 0x6c]
mov ecx, dword [edi + edx + 0x4c]
lea eax, [edi + edx]
sub ecx, dword [eax + 0x7c]
mov dword [eax + 0x44], ecx
mov edx, dword [esi + 0x6c]
mov ecx, dword [edi + edx]
test ecx, ecx
lea eax, [edi + edx]
je 0x407b54
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x407b54
add eax, 0x40
push eax
push 0xfffffffffffffff3
push 0x214
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x407b54
cmp ecx, 0x1000
je 0x407b1b
cmp ecx, 0x2000
jne 0x407b54
cmp dword [eax], 0
jne 0x407b54
lea ecx, [eax + 0x20]
mov edx, dword [ecx]
add eax, 0x40
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x44]
jmp 0x407b43
lea ecx, [eax + 0x20]
mov edx, dword [ecx]
add eax, 0x40
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0xd4]
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0x6c]
push edx
lea edx, [edi + ecx + 0x40]
push eax
mov ecx, esi
push edx
call fcn.00408220
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + edi]
add eax, edi
test ecx, ecx
je 0x407bcd
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x407bcd
cmp dword [eax + 0x68], 0x2000
je 0x407bcd
lea ecx, [eax + 0x40]
push ecx
add eax, 0x30
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x407bcd
mov edx, dword [esi + 0x6c]
lea eax, [edi + edx]
lea ecx, [eax + 0x40]
mov edx, dword [ecx]
add eax, 0x30
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x6c]
mov ecx, dword [edi + edx + 0x34]
mov ebp, dword [edi + edx + 0x3c]
lea eax, [edi + edx]
mov edx, dword [eax + 0x30]
push 1
sub ebp, ecx
push ebp
mov ebp, dword [eax + 0x38]
sub ebp, edx
push ebp
push ecx
mov ecx, dword [eax]
push edx
call sub.MFC42.DLL_CWnd::MoveWindow
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x70]
inc eax
add edi, 0x8c
cmp eax, ecx
mov dword [esp + 0x4c], eax
jb 0x40758e
test byte [esi + 0x68], 0x10
pop ebp
pop ebx
je 0x407bf6
mov ecx, esi
call fcn.00407c00
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret 8