Function at 0x407d31
Capabilities:
Get common file path
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x10f8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.0040b8e8
sub esp, eax
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x10bc], edx
cmp eax, 0x111
je 0x407a48
ja 0x4077b0
cmp eax, 0x10
je 0x407b00
jbe 0x407848
cmp eax, 0x24
jne 0x407a08
shl dword [edi + 0x20], 1
shl dword [edi + 0x24], 1
xor ebx, ebx
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x219
je 0x407b70
cmp eax, 0xbf83
jne 0x4078a3
mov dword [esp], esi
call dword [sym.imp.user32.dll_IsIconic]
sub esp, 4
test eax, eax
jne 0x407910
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetClientRect]
sub esp, 8
mov eax, dword [0x41704c]
mov ebx, dword [sym.imp.user32.dll_IsWindowVisible]
mov dword [esp], eax
call ebx
sub esp, 4
test eax, eax
jne 0x408190
mov eax, dword [0x417050]
mov dword [esp], eax
call ebx
sub esp, 4
test eax, eax
jne 0x408160
mov eax, dword [0x417048]
mov dword [esp], eax
call ebx
sub esp, 4
test eax, eax
jne 0x408130
lea esp, [ebp - 0x10]
mov ebx, 1
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 2
je 0x4079e0
cmp eax, 5
jne 0x407a08
mov dword [ebp - 0x818], 0
mov eax, edi
mov edx, edi
xor ebx, ebx
and eax, 0xffff
shr edx, 0x10
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], eax
lea eax, [ebp - 0x818]
mov dword [ebp - 0x80c], edx
call sym._resize_frame_rect.constprop.0
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x117
jne 0x407a08
mov eax, dword [0x417044]
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x229
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x10bc]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], 0x117
mov dword [esp], eax
call ebx
xor ebx, ebx
sub esp, 0x10
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea eax, [ebp - 0x818]
mov dword [esp], esi
mov dword [ebp - 0x818], 0x2c
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_GetWindowPlacement]
mov eax, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [edi + 4], 0
sub esp, 8
mov dword [edi], 0
mov esi, dword [ebp - 0x7f4]
mov dword [esp], 0x20
sub esi, dword [ebp - 0x7fc]
mov dword [ebp - 0x10bc], eax
call eax
sub esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x10bc]
mov dword [esp], 0x2d
call eax
add ebx, eax
sub esp, 4
mov eax, dword [ebp - 0x10bc]
add ebx, ebx
sub esi, ebx
mov ebx, dword [ebp - 0x7f0]
sub ebx, dword [ebp - 0x7f8]
mov dword [edi + 8], esi
mov dword [esp], 0x21
call eax
sub esp, 4
mov esi, eax
mov eax, dword [ebp - 0x10bc]
mov dword [esp], 0x2e
call eax
add esi, eax
sub esp, 4
add esi, esi
mov dword [esp], 4
sub ebx, esi
mov esi, dword [ebp - 0x10bc]
call esi
sub esp, 4
sub ebx, eax
mov dword [esp], 0x37
call esi
sub ebx, eax
sub esp, 4
mov dword [edi + 0xc], ebx
jmp 0x4077ea
mov dword [esp], 0
xor ebx, ebx
call dword [sym.imp.user32.dll_PostQuitMessage]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edx, dword [ebp - 0x10bc]
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [0x417044]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_DefFrameProcW]
sub esp, 0x14
lea esp, [ebp - 0x10]
mov ebx, eax
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [0x417044]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x10c4], ebx
mov dword [esp + 4], 0x229
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x10bc]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], 0xbf80
mov dword [esp], eax
call ebx
sub esp, 0x10
mov ebx, eax
test eax, eax
jne 0x407799
movzx eax, word [ebp - 0x10bc]
lea ecx, [eax - 0x9002]
cmp ecx, 0xff
jbe 0x407bb0
cmp eax, 0x6a8
je 0x4087fd
ja 0x408440
test dword [ebp - 0x10bc], 0xfe00
jne 0x408b28
cmp eax, 0x1f6
jbe 0x4083e5
lea ecx, [eax - 0x1f7]
cmp ecx, 8
ja case.0x408465.57653
jmp dword [ecx*4 + 0x40d068]
mov eax, dword [0x41786c]
test eax, eax
jne 0x4081c0
mov dword [esp], esi
xor ebx, ebx
call dword [sym.imp.user32.dll_DestroyWindow]
mov eax, ebx
mov dword [0x417030], 0
mov dword [0x41703c], 0
sub esp, 4
mov dword [0x417040], 0
mov dword [0x41702c], 0
mov dword [0x417044], 0
mov dword [0x417050], 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], esi
xor ebx, ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6a8
mov dword [esp + 4], 0x111
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, ebx
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
sub eax, 0x9003
mov edi, 0x417068
test ecx, ecx
jne 0x407bc3
jmp 0x407bd1
add edi, 2
cmp word [edi], 0
jne 0x407bc0
add edi, 2
sub eax, 1
jae 0x407bc3
lea eax, [ebp - 0x1018]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x10bc], eax
mov eax, dword [sym.imp.ucrtbase.dll__wsplitpath]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], edi
mov dword [ebp - 0x10c0], eax
call eax
mov eax, dword [0x417044]
mov dword [esp + 4], 5
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindow]
mov dword [ebp - 0x10c8], eax
call eax
sub esp, 8
test eax, eax
je 0x407cea
mov edx, dword [sym.imp.user32.dll_GetWindowLongW]
mov dword [ebp - 0x10d0], edi
mov edi, dword [ebp - 0x10c8]
mov dword [ebp - 0x10cc], ebx
mov ebx, eax
mov dword [ebp - 0x10d4], esi
mov esi, edx
lea esi, [esi]
nop
mov dword [esp + 4], 0xffffffeb
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
je 0x407cc2
lea edx, [ebp - 0x818]
add eax, 0x828
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x10c0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call eax
mov eax, dword [ebp - 0x10bc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x818]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x40875d
mov dword [esp], ebx
mov dword [esp + 4], 2
call edi
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x407c58
mov edi, dword [ebp - 0x10d0]
mov ebx, dword [ebp - 0x10cc]
mov esi, dword [ebp - 0x10d4]
mov eax, dword [ebp - 0x10bc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x10c0]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp], edi
call edx
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
je 0x4087cb
lea edi, [ebp - 0x818]
mov dword [esp], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov ecx, esi
xor edx, edx
sub esp, 8
mov eax, edi
call dbg.alloc_child_window
mov esi, eax
call dbg.create_child_window
test eax, eax
jne 0x40779b
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40779b
lea ecx, [eax - 0xc000]
cmp ecx, 0xff
jbe 0x407dac
sub eax, 0xf000
cmp eax, 0x120
ja 0x408b28
mov eax, dword [ebp - 0x10bc]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0x111
mov dword [esp + 0xc], eax
jmp 0x407a1a
mov ecx, dword [0x41786c]
xor eax, eax
mov dword [esp + 4], 0x1ff
test ecx, ecx
sete al
mov dword [0x41786c], eax
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x417040]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
jmp 0x40779b
mov dword [esp], esi
lea edi, [ebp - 0x1074]
call dword [sym.imp.user32.dll_GetDC]
mov dword [ebp - 0x10bc], eax
mov eax, dword [0x417054]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetObjectW]
mov eax, dword [0x417020]
mov dword [ebp - 0x10b0], 0x3c
sub esp, 0xc
mov dword [ebp - 0x10ac], esi
mov dword [ebp - 0x1088], eax
mov eax, 0xffff8000
mov word [ebp - 0x1080], ax
lea eax, [ebp - 0x10b0]
mov dword [ebp - 0x10a8], 0
mov dword [ebp - 0x10a4], edi
mov dword [ebp - 0x109c], 0x1812041
mov dword [ebp - 0x1098], 0
mov dword [ebp - 0x1094], 0
mov dword [ebp - 0x1090], 0
mov dword [ebp - 0x108c], 0
mov dword [ebp - 0x1084], 0
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x1078], 0x18
mov dword [esp], eax
call dword [sym.imp.comdlg32.dll_ChooseFontW]
sub esp, 4
test eax, eax
je 0x4089d9
mov eax, dword [0x417054]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteObject]
push eax
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_CreateFontIndirectW]
mov edi, dword [ebp - 0x10bc]
push edx
mov dword [0x417054], eax
mov dword [esp + 4], eax
mov eax, dword [sym.imp.gdi32.dll_SelectObject]
mov dword [esp], edi
mov dword [ebp - 0x10d0], eax
call eax
push ecx
push ecx
mov dword [ebp - 0x10cc], eax
mov dword [esp], edi
mov dword [esp + 0xc], 0x41705c
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40d4f4
call dword [sym.imp.gdi32.dll_GetTextExtentPoint32W]
mov eax, dword [0x417044]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindow]
mov dword [esp + 4], 5
mov dword [ebp - 0x10c8], eax
call eax
mov ecx, eax
push edi
push edi
test eax, eax
je 0x4080af
mov eax, dword [sym.imp.user32.dll_GetWindowLongW]
mov dword [ebp - 0x10d4], ebx
mov edi, dword [ebp - 0x10c4]
mov dword [ebp - 0x10d8], esi
mov esi, ecx
mov dword [ebp - 0x10c0], eax
mov dword [esp], esi
mov eax, dword [ebp - 0x10c0]
mov dword [esp + 4], 0xffffffeb
call eax
mov ebx, eax
mov eax, dword [0x417054]
sub esp, 8
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x30
mov eax, dword [ebx + 4]
mov dword [esp], eax
call edi
mov eax, dword [0x417054]
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x30
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call edi
mov eax, dword [0x417060]
mov edx, 0x10
sub esp, 0x10
cmp eax, edx
mov dword [esp + 8], 1
cmovl eax, edx
mov dword [esp + 4], 0x1a0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call edi
mov eax, dword [0x417060]
mov edx, 0x10
sub esp, 0x10
cmp eax, edx
mov dword [esp + 8], 1
cmovl eax, edx
mov dword [esp + 4], 0x1a0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.user32.dll_InvalidateRect]
sub esp, 0xc
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call dword [sym.imp.user32.dll_InvalidateRect]
mov eax, dword [ebp - 0x10c8]
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], 2
call eax
sub esp, 8
mov esi, eax
test eax, eax
jne 0x407f80
mov ebx, dword [ebp - 0x10d4]
mov esi, dword [ebp - 0x10d8]
mov eax, dword [ebp - 0x10cc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
mov eax, dword [ebp - 0x10d0]
call eax
push edi
push edi
mov eax, dword [ebp - 0x10bc]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_ReleaseDC]
sub esp, 8
jmp 0x40779b
mov ecx, dword [0x41704c]
mov edx, 0x1fc
mov eax, esi
call dbg.toggle_child
jmp 0x40779b
mov ecx, dword [0x417048]
mov edx, 0x1f7
mov eax, esi
call dbg.toggle_child
jmp 0x40779b
mov ecx, dword [0x417050]
mov edx, 0x1fb
mov eax, esi
call dbg.toggle_child
jmp 0x40779b
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [0x417048]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [ebp - 0x80c]
sub dword [edi + 0xc], eax
sub esp, 8
jmp 0x40782f
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [0x417050]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [ebp - 0x80c]
sub esp, 8
add eax, 2
add dword [edi + 4], eax
jmp 0x40781a
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [0x41704c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [ebp - 0x80c]
sub esp, 8
add eax, 2
add dword [edi + 4], eax
jmp 0x407805
lea eax, [ebp - 0x1018]
lea ebx, [ebp - 0x10b4]
mov dword [ebp - 0x1018], 0x3c
mov dword [esp + 4], eax
mov eax, dword [0x41702c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowInfo]
mov eax, dword [ebp - 0x100c]
sub eax, dword [ebp - 0x1014]
sub esp, 8
mov dword [ebp - 0x10b0], eax
mov eax, dword [ebp - 0x1008]
sub eax, dword [ebp - 0x1010]
mov dword [esp + 0x10], ebx
mov dword [ebp - 0x1074], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareWineWineFile
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x408293
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareWineWineFile
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x407b0d
lea eax, [ebp - 0x1014]
mov ebx, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x14], 4
lea edi, [ebp - 0x818]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10b4]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.startX
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x1010]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10b4]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.startY
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x10b0]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10b4]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.width
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x1074]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10b4]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.height
mov dword [esp], eax
call ebx
mov eax, dword [0x417054]
sub esp, 0x18
mov dword [esp + 8], edi
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetObjectW]
mov eax, dword [ebp - 0x10b4]
sub esp, 0xc
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.logfont
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x10b4]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x407b0d
cmp eax, 0xfc
je 0x4087e0
jbe 0x408720
cmp eax, 0xfd
jne 0x408b28
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._WNetDisconnectDialog_8
sub esp, 8
mov edx, eax
test eax, eax
je 0x4087fd
cmp edx, 0xffffffff
je 0x407799
mov eax, esi
cmp edx, 0x4b8
je 0x408baf
call dbg.display_error
jmp 0x40779b
cmp eax, 0xe146
ja case.0x408465.57653
cmp eax, 0xe12f
jbe 0x408538
lea ecx, [eax - 0xe130]
cmp ecx, 0x16
ja case.0x408465.57653
jmp dword [ecx*4 + 0x40d08c]
mov eax, dword [0x417020]
lea edi, [ebp - 0x1018]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4b0
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_WinHelpW]
sub esp, 0x10
jmp 0x40779b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x226
mov eax, dword [0x417044]
mov dword [esp], eax
mov eax, dword [ebp - 0x10c4]
call eax
sub esp, 0x10
jmp 0x40779b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
jmp 0x4084cc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x227
jmp 0x4084d4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x228
jmp 0x4084d4
cmp eax, 0x8004
je 0x40888b
cmp eax, 0x9001
jne 0x408688
lea eax, [ebp - 0x1018]
mov dword [esp + 0xc], 0x400
mov dword [ebp - 0x10bc], eax
mov dword [esp + 8], eax
mov eax, dword [0x417020]
mov dword [esp + 4], 0x4b5
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [0x417044]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindow]
mov dword [esp + 4], 5
mov dword [ebp - 0x10c8], eax
call eax
sub esp, 8
test eax, eax
je 0x408618
mov edx, dword [sym.imp.user32.dll_GetWindowLongW]
mov dword [ebp - 0x10c0], ebx
mov ebx, dword [ebp - 0x10c8]
mov dword [ebp - 0x10cc], esi
mov esi, eax
mov edi, edx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
je 0x4085f6
mov edx, dword [ebp - 0x10bc]
add eax, 0xc30
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x408ad1
mov dword [esp], esi
mov dword [esp + 4], 2
call ebx
sub esp, 8
mov esi, eax
test eax, eax
jne 0x4085bf
mov ebx, dword [ebp - 0x10c0]
mov esi, dword [ebp - 0x10cc]
lea edi, [ebp - 0x818]
mov dword [esp], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x10b0]
push eax
push eax
mov eax, dword [0x417870]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x1074]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x1c
test eax, eax
js 0x408bb9
mov edx, dword [ebp - 0x10b0]
mov ecx, esi
jmp 0x407d4f
cmp eax, 0x70b
jne case.0x408465.57653
mov eax, dword [0x417020]
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 1
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadImageW]
lea edx, [ebp - 0x1018]
mov edi, eax
mov eax, dword [0x417020]
sub esp, 0x18
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 4], 0x4b0
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
lea edx, [ebp - 0x1018]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [sym.imp.shell32.dll_ShellAboutW]
sub esp, 0x10
jmp 0x40779b
cmp eax, 0x69
je 0x408807
cmp eax, 0x73
jne 0x408b28
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x10c4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], esi
call eax
sub esp, 0x10
jmp 0x40779b
mov eax, dword [0x417044]
mov ecx, ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov ebx, dword [ebp - 0x10cc]
mov dword [ebp - 0x10bc], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x10c4]
mov dword [esp + 4], 0x222
call eax
mov ecx, dword [ebp - 0x10bc]
sub esp, 0x10
mov dword [esp], ecx
call dword [sym.imp.user32.dll_IsIconic]
mov ecx, dword [ebp - 0x10bc]
sub esp, 4
test eax, eax
je 0x40779b
mov dword [esp + 4], 1
mov dword [esp], ecx
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
jmp 0x40779b
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, esi
call dbg.display_error
jmp 0x40779b
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._WNetConnectionDialog_8
sub esp, 8
mov edx, eax
test eax, eax
jne 0x40841e
call dbg.refresh_drives
jmp 0x40779b
mov dword [esp], str.SHELL32.DLL
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x10bc], eax
mov eax, dword [0x417020]
sub esp, 4
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadIconW]
mov edx, dword [ebp - 0x10bc]
sub esp, 8
mov edi, eax
mov dword [esp + 4], 0x3d
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x407799
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call eax
sub esp, 0x18
jmp 0x40779b
mov edx, dword [0x417bc0]
xor eax, eax
test edx, edx
sete al
mov dword [0x417bc0], eax
jne 0x408a6e
mov dword [esp + 4], 0x417bc4
lea edi, [ebp - 0x818]
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetWindowRect]
push eax
push eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_IsZoomed]
push edx
mov dword [0x417bd4], eax
mov eax, dword [ebp - 0x10c4]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xbf83
mov dword [esp], esi
call eax
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.user32.dll_MapWindowPoints]
mov eax, dword [0x417bc4]
sub eax, dword [ebp - 0x818]
mov dword [ebp - 0x818], eax
sub esp, 0x10
mov eax, dword [0x417bc8]
sub eax, dword [ebp - 0x814]
mov edi, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [esp], 0
mov dword [ebp - 0x814], eax
call edi
add eax, dword [0x417bcc]
sub eax, dword [ebp - 0x810]
push ecx
mov dword [ebp - 0x810], eax
mov dword [esp], 1
call edi
mov ecx, dword [ebp - 0x814]
add eax, dword [0x417bd0]
sub eax, dword [ebp - 0x80c]
mov edx, dword [ebp - 0x818]
push edi
mov dword [ebp - 0x80c], eax
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x810]
mov dword [esp + 0x14], 1
sub eax, edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [sym.imp.user32.dll_MoveWindow]
sub esp, 0x18
mov esi, dword [0x417bc0]
xor eax, eax
mov dword [esp + 4], 0x8004
test esi, esi
setne al
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x417040]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
jmp 0x40779b
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
test eax, eax
je 0x4080cc
mov ecx, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [0x417020]
lea edx, [ebp - 0x1018]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], edx
lea edi, [ebp - 0x818]
mov dword [ebp - 0x10c0], ecx
mov dword [esp + 4], 0x44d
mov dword [esp], eax
call ecx
mov eax, dword [0x417020]
mov ecx, dword [ebp - 0x10c0]
sub esp, 0x10
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], edi
mov dword [esp + 4], 0x44f
mov dword [esp], eax
call ecx
lea edx, [ebp - 0x1018]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
jmp 0x4080cc
mov ecx, dword [0x417bc8]
mov eax, dword [0x417bd0]
mov dword [esp], esi
mov edx, dword [0x417bc4]
mov dword [esp + 0x14], 1
sub eax, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
mov eax, dword [0x417bcc]
mov dword [esp + 4], edx
sub eax, edx
mov dword [esp + 0xc], eax
call dword [sym.imp.user32.dll_MoveWindow]
sub esp, 0x18
cmp dword [0x417bd4], 0
je 0x4089a7
mov dword [esp + 4], 0x1000000
mov dword [esp], esi
call dword [sym.imp.user32.dll_ShowWindow]
push edi
push edi
jmp 0x4089a7
mov eax, dword [0x417044]
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov ebx, dword [ebp - 0x10c0]
mov dword [esp], eax
mov eax, dword [ebp - 0x10c4]
mov dword [esp + 4], 0x222
call eax
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.user32.dll_IsIconic]
push ecx
test eax, eax
je 0x40779b
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.user32.dll_ShowWindow]
push edx
push edx
jmp 0x40779b
mov ecx, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [0x417020]
lea ebx, [ebp - 0x1018]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebx
mov dword [ebp - 0x10c0], ecx
mov dword [esp + 4], 0x4b0
mov dword [esp], eax
call ecx
mov eax, dword [0x417020]
lea edx, [ebp - 0x818]
mov ecx, dword [ebp - 0x10c0]
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 4], 0x4b7
mov dword [esp], eax
call ecx
lea edx, [ebp - 0x818]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
jmp 0x407dac
call dbg.display_network_error
jmp 0x40779b
xor edx, edx
mov ecx, esi
jmp 0x407d4f