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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x45e263
mov byte [edi + 0xba], 1
cmp word [ecx], 0
je 0x45da4a
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, SysReAllocString
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [edi]
push eax
mov byte [esp + 0x1a], 0
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, dword [edi]
mov ebx, eax
push ecx
mov dword [esp + 0x50], ebx
call dword [sym.imp.USER32.dll_IsIconic]
mov dword [esp + 0x28], eax
test eax, eax
je 0x45da8e
mov dword [esp + 0x18], 9
jmp 0x45daa0
xor edx, edx
test ebx, ebx
setne dl
lea edx, [edx*4 + 1]
mov dword [esp + 0x18], edx
cmp word [esi], 0
je 0x45dcc2
lea ebp, [esi + 2]
lea ecx, [ecx]
movzx ebx, word [esi]
test ebx, 0xffffff80
jne 0x45dacd
push 2
push ebx
call fcn.0048757e
add esp, 8
test eax, eax
je 0x45dacd
and ebx, 0xffffffdf
movzx eax, bx
add eax, 0xffffffbf
cmp eax, 0x18
ja case.0x45dae3.66
movzx eax, byte [eax + 0x45e29c]
jmp dword [eax*4 + 0x45e274]
push 8
push str.AutoSize
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne case.0x45dae3.66
add esi, 0xe
add ebp, 0xe
mov byte [esp + 0x16], 1
jmp case.0x45dae3.66
push 6
push str.Center
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne case.0x45dae3.66
mov eax, SysReAllocString
add esi, 0xa
add ebp, 0xa
mov dword [esp + 0x1c], eax
jmp 0x45dcae
push 8
push str.Minimize
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x45db65
add esi, 0xe
add ebp, 0xe
mov dword [esp + 0x18], 6
jmp case.0x45dae3.66
push 8
push str.Maximize
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne case.0x45dae3.66
add esi, 0xe
add ebp, 0xe
mov dword [esp + 0x18], 3
jmp case.0x45dae3.66
push 2
push 0x4b6594
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x45dbb7
add esi, 2
add ebp, 2
mov dword [esp + 0x18], 8
jmp case.0x45dae3.66
push 0xa
push str.NoActivate
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne case.0x45dae3.66
add esi, 0x12
add ebp, 0x12
mov dword [esp + 0x18], 4
jmp case.0x45dae3.66
push 7
push str.Restore
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne case.0x45dae3.66
add esi, 0xc
add ebp, 0xc
mov dword [esp + 0x18], 9
jmp case.0x45dae3.66
push ebp
call fcn.004875c6
add esp, 4
mov dword [esp + 0x10], eax
jmp case.0x45dae3.66
push 4
push str.Hide
push esi
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x45dc3f
add esi, 6
add ebp, 6
mov dword [esp + 0x18], eax
jmp case.0x45dae3.66
push ebp
call fcn.004875c6
add esp, 4
mov dword [esp + 0xc], eax
jmp case.0x45dae3.66
push 6
push str.Center
push ebp
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x45dc72
add esi, 0xc
add ebp, 0xc
mov dword [esp + 0x1c], SysStringLen
jmp case.0x45dae3.66
push ebp
call fcn.004875c6
add esp, 4
mov dword [esp + 0x1c], eax
jmp case.0x45dae3.66
push 6
push str.Center
push ebp
call fcn.00486b72
add esp, 0xc
test eax, eax
jne 0x45dca5
add esi, 0xc
add ebp, 0xc
mov dword [esp + 0x24], SysStringLen
jmp case.0x45dae3.66
push ebp
call fcn.004875c6
add esp, 4
mov dword [esp + 0x24], eax
add esi, 2
add ebp, 2
cmp word [esi], 0
jne 0x45dab0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x17], 0
test eax, eax
je 0x45dcf7
cmp eax, 9
je 0x45dce9
cmp eax, 4
jne 0x45dd06
cmp dword [esp + 0x4c], 0
jne 0x45dcf7
cmp dword [esp + 0x28], 0
je 0x45dd06
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x17], 1
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
sete al
mov byte [esp + 0x23], al
test al, al
je 0x45deb5
cmp byte [esp + 0x16], 0
je 0x45de02
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebx
cmp dword [edi + 0xc], ebx
jbe 0x45ddc3
mov dword [esp + 0x10], ebx
mov esi, dword [edi + 0x14]
add esi, dword [esp + 0x10]
cmp byte [esi + 4], 0x15
je 0x45dd9b
mov eax, dword [esi]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x45dd9b
mov edx, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi]
push 2
lea eax, [esp + 0x30]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x34]
cmp eax, ebp
jle 0x45dd8d
mov ebp, eax
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0xc]
jle 0x45dd9b
mov dword [esp + 0xc], eax
add dword [esp + 0x10], 0x14
inc ebx
cmp ebx, dword [edi + 0xc]
jb 0x45dd44
mov dword [esp + 0x10], ebp
test ebp, ebp
jle 0x45ddb5
add ebp, dword [edi + 0x78]
mov dword [esp + 0x10], ebp
cmp dword [esp + 0xc], 0
jle 0x45ddc3
mov edx, dword [edi + 0x7c]
add dword [esp + 0xc], edx
mov eax, dword [edi + 4]
test eax, eax
je 0x45deb5
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x45deb5
mov ecx, dword [edi + 4]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
add dword [esp + 0xc], edx
jmp 0x45deb5
cmp esi, 0x80000000
je 0x45de16
cmp ebx, 0x80000000
jne 0x45deb5
cmp byte [edi + 0xb8], 0
je 0x45de7f
cmp esi, 0x80000000
jne 0x45de34
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x10], eax
cmp ebx, 0x80000000
jne 0x45deb5
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 4]
mov dword [esp + 0xc], esi
test eax, eax
je 0x45deb5
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x45deb5
mov ecx, dword [edi + 4]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
add esi, edx
mov dword [esp + 0xc], esi
jmp 0x45deb5
mov ecx, dword [edi]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp esi, 0x80000000
jne 0x45dea1
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
cmp ebx, 0x80000000
jne 0x45deb5
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb8], 0
je 0x45df12
cmp byte [edi + 0x54], 0
je 0x45deed
xor ebp, ebp
cmp dword [edi + 0xc], ebp
jbe 0x45deed
xor esi, esi
lea ecx, [ecx]
mov eax, dword [edi + 0x14]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x45dee4
push 0
push eax
push edi
call fcn.00461360
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0xc]
jb 0x45ded0
cmp dword [esp + 0x1c], 0x80000000
jne 0x45deff
mov dword [esp + 0x1c], SysStringLen
mov ebx, dword [esp + 0x24]
cmp ebx, 0x80000000
jne 0x45df16
mov ebx, SysReAllocString
jmp 0x45df16
mov ebx, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x23], 0
mov dword [esp + 0x28], eax
je 0x45e178
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [edi]
push 0xffffffffffffffec
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call esi
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov edx, dword [edi]
neg eax
sbb eax, eax
neg eax
push eax
push 0xfffffffffffffff0
push edx
call esi
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
sub esi, dword [esp + 0x3c]
sub ebp, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub eax, dword [esp + 0x58]
sub ecx, dword [esp + 0x5c]
cmp byte [edi + 0xb8], 0
je 0x45dfd3
cmp dword [esp + 0x50], 0x80000000
jne 0x45dfc3
cmp esi, eax
jle 0x45dfc3
mov esi, eax
cmp dword [esp + 0x54], 0x80000000
jne 0x45dfd3
cmp ebp, ecx
jle 0x45dfd3
mov ebp, ecx
cmp dword [esp + 0x1c], 0x80000001
jne 0x45dfec
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
cmp ebx, 0x80000001
jne 0x45e003
mov eax, ecx
sub eax, ebp
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, dword [esp + 0x5c]
mov eax, dword [edi]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
sub ecx, eax
cmp esi, ecx
jne 0x45e049
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
sub ecx, edx
cmp ebp, ecx
jne 0x45e049
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x80000000
je 0x45e03d
cmp ecx, eax
jne 0x45e049
cmp ebx, 0x80000000
je 0x45e08e
cmp ebx, edx
je 0x45e08e
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x45e061
mov eax, dword [edi]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 0x80000000
jne 0x45e06d
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
cmp eax, 0x80000000
jne 0x45e07c
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x28]
mov edx, dword [edi]
push ecx
push ebp
push esi
push ebx
push eax
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [edi + 0xb8], 0
je 0x45e178
mov ecx, dword [edi]
lea eax, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi]
lea edx, [esp + 0x88]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
sub eax, dword [esp + 0x78]
sub ecx, dword [esp + 0x7c]
mov esi, dword [edi + 0xa8]
mov edx, eax
sub edx, dword [esp + 0x90]
mov ebp, ecx
sub ebp, dword [esp + 0x94]
cmp esi, 0x80000001
jne 0x45e0f8
mov dword [edi + 0xa8], eax
jmp 0x45e108
cmp esi, 0x80000000
je 0x45e108
add esi, edx
mov dword [edi + 0xa8], esi
mov esi, dword [edi + 0xac]
cmp esi, 0x80000001
jne 0x45e11e
mov dword [edi + 0xac], ecx
jmp 0x45e12e
cmp esi, 0x80000000
je 0x45e12e
add esi, ebp
mov dword [edi + 0xac], esi
mov esi, dword [edi + 0xb0]
cmp esi, 0x80000001
jne 0x45e144
mov dword [edi + 0xb0], eax
jmp 0x45e154
cmp esi, 0x80000000
je 0x45e154
add esi, edx
mov dword [edi + 0xb0], esi
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x45e169
mov dword [edi + 0xb4], ecx
jmp 0x45e178
cmp eax, 0x80000000
je 0x45e178
add eax, ebp
mov dword [edi + 0xb4], eax
cmp byte [esp + 0x17], 0
jne 0x45e18d
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 8
ja case.0x45e1a2.2
movzx eax, byte [eax + 0x45e2c0]
jmp dword [eax*4 + 0x45e2b8]
mov esi, dword [edi]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x45e1bc
mov eax, esi
call fcn.0046eae0
cmp byte [edi + 0xb9], 0
je case.0x45e1a2.2
mov byte [edi + 0xb9], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
test ebx, ebx
je 0x45e22c
cmp byte [edi + 0x54], 0
je case.0x45e1a2.2
mov ebp, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push ebx
call ebp
lea esi, [eax - 3]
cmp esi, dword [edi + 0xc]
jb 0x45e205
push ebx
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x45e200
push eax
call ebp
lea esi, [eax - 3]
cmp esi, dword [edi + 0xc]
jae case.0x45e1a2.2
mov edx, dword [edi + 0x14]
lea ecx, [esi + esi*4]
lea esi, [edx + ecx*4]
test esi, esi
je case.0x45e1a2.2
cmp byte [esi + 4], 0x13
jne case.0x45e1a2.2
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push esi
push edi
call fcn.00461360
jmp case.0x45e1a2.2
mov ecx, dword [edi]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xb8], 0
mov byte [edi + 0xba], 0
mov dword [0x4bd3e4], 0
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], 1
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x90
ret