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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x10e8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.0040b6b8
sub esp, eax
mov eax, dword [ecx]
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x10bc], eax
mov eax, dword [ecx + 4]
cmp eax, 0x111
je 0x4075f0
ja 0x407400
cmp eax, 0x10
je 0x407520
ja 0x407510
cmp eax, 2
je 0x407470
cmp eax, 5
jne 0x407588
mov dword [ebp - 0x818], 0
mov eax, esi
shr esi, 0x10
and eax, 0xffff
mov dword [ebp - 0x80c], esi
mov dword [ebp - 0x810], eax
lea eax, [ebp - 0x818]
mov dword [ebp - 0x814], 0
call sym._resize_frame_rect.isra.0
xor eax, eax
jmp 0x4074fd
cmp eax, 0x219
je 0x4075c0
cmp eax, 0xbf83
je 0x407488
cmp eax, 0x117
jne 0x407588
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x229
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x117
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
jmp 0x4074fd
mov dword [esp], 0
call sym._PostQuitMessage_4
xor eax, eax
sub esp, 4
jmp 0x4074fd
mov edi, dword [ebp - 0x10bc]
mov dword [esp], edi
call sym._IsIconic_4
sub esp, 4
test eax, eax
jne 0x407690
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._GetClientRect_8
sub esp, 8
mov eax, dword [0x41404c]
mov dword [esp], eax
call sym._IsWindowVisible_4
sub esp, 4
test eax, eax
jne 0x407c80
mov eax, dword [0x414050]
mov dword [esp], eax
call sym._IsWindowVisible_4
sub esp, 4
test eax, eax
jne 0x407f10
mov eax, dword [0x414048]
mov dword [esp], eax
call sym._IsWindowVisible_4
sub esp, 4
test eax, eax
jne 0x407ee0
mov eax, 1
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x24
jne 0x407588
shl dword [esi + 0x20], 1
xor eax, eax
shl dword [esi + 0x24], 1
jmp 0x4074fd
mov eax, dword [0x41486c]
test eax, eax
jne 0x407cb0
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._DestroyWindow_4
xor eax, eax
mov dword [0x414030], 0
mov dword [0x41403c], 0
sub esp, 4
mov dword [0x414040], 0
mov dword [0x41402c], 0
mov dword [0x414044], 0
mov dword [0x414050], 0
jmp 0x4074fd
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [0x414044]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._DefFrameProcW_20
sub esp, 0x14
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6a8
mov dword [esp + 4], 0x111
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
jmp 0x4074fd
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x229
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0xbf80
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
jne 0x4073f1
movzx eax, di
lea ecx, [eax - 0x9002]
cmp ecx, 0xff
jbe 0x407758
cmp eax, 0x6a8
je 0x4081c8
ja 0x407f3b
test edi, 0xfe00
jne 0x408685
cmp eax, 0x1f6
jbe 0x4080ad
lea edx, [eax - 0x1f7]
cmp edx, 8
ja case.0x407f60.57653
jmp dword [edx*4 + 0x40d078]
mov dword [ebp - 0x818], 0x2c
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._GetWindowPlacement_8
mov ebx, dword [ebp - 0x7f4]
mov dword [esi + 4], 0
sub esp, 8
sub ebx, dword [ebp - 0x7fc]
mov dword [esi], 0
mov dword [esp], 0x20
call sym._GetSystemMetrics_4
sub esp, 4
mov edi, eax
mov dword [esp], 0x2d
call sym._GetSystemMetrics_4
add eax, edi
sub esp, 4
add eax, eax
sub ebx, eax
mov dword [esi + 8], ebx
mov ebx, dword [ebp - 0x7f0]
sub ebx, dword [ebp - 0x7f8]
mov dword [esp], 0x21
call sym._GetSystemMetrics_4
sub esp, 4
mov edi, eax
mov dword [esp], 0x2e
call sym._GetSystemMetrics_4
sub esp, 4
add eax, edi
mov dword [esp], 4
add eax, eax
sub ebx, eax
call sym._GetSystemMetrics_4
sub esp, 4
sub ebx, eax
mov dword [esp], 0x37
call sym._GetSystemMetrics_4
sub ebx, eax
sub esp, 4
mov dword [esi + 0xc], ebx
jmp 0x4074b0
sub eax, 0x9003
mov edx, 0x414068
test ecx, ecx
jne 0x407773
jmp 0x407781
add edx, 2
cmp word [edx], 0
jne 0x407770
add edx, 2
sub eax, 1
jae 0x407773
lea eax, [ebp - 0x1018]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x10c0], eax
mov dword [esp + 4], eax
mov eax, dword [sym.imp.ucrtbase.dll__wsplitpath]
mov dword [esp], edx
mov dword [ebp - 0x10c8], edx
mov dword [ebp - 0x10c4], eax
call eax
mov dword [esp + 4], 5
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._GetWindow_8
mov edx, dword [ebp - 0x10c8]
sub esp, 8
test eax, eax
je 0x407872
mov edi, dword [ebp - 0x10c4]
lea esi, [ebp - 0x818]
mov ebx, eax
lea esi, [esi]
nop
mov dword [esp + 4], 0xffffffeb
mov dword [esp], ebx
call sym._GetWindowLongW_8
sub esp, 8
test eax, eax
je 0x407853
add eax, 0x828
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
call edi
mov eax, dword [ebp - 0x10c0]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x40805c
mov dword [esp], ebx
mov dword [esp + 4], 2
call sym._GetWindow_8
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x4077f8
mov edx, dword [ebp - 0x10c8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ebx, dword [ebp - 0x10c0]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x10c4]
call eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
je 0x408100
lea esi, [ebp - 0x818]
mov dword [esp], 0x104
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 0x10bc]
xor edx, edx
sub esp, 8
mov eax, esi
call dbg.alloc_child_window
mov ebx, eax
call dbg.create_child_window
test eax, eax
jne 0x4073f1
mov dword [esp + 8], ebx
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]
xor eax, eax
sub esp, 0xc
jmp 0x4074fd
lea edx, [eax - 0xc000]
cmp edx, 0xff
jbe 0x407934
sub eax, 0xf000
cmp eax, 0x120
ja 0x408685
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x111
jmp 0x407594
mov edx, dword [0x41486c]
xor eax, eax
test edx, edx
sete al
mov dword [0x41486c], eax
shl eax, 3
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1ff
mov eax, dword [0x414040]
mov dword [esp], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
jmp 0x4074fd
mov ebx, dword [ebp - 0x10bc]
lea esi, [ebp - 0x1074]
mov dword [esp], ebx
call sym._GetDC_4
sub esp, 4
mov edi, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5c
mov eax, dword [0x414054]
mov dword [esp], eax
call sym._GetObjectW_12
mov eax, dword [0x414020]
mov dword [ebp - 0x10b0], 0x3c
sub esp, 0xc
mov dword [ebp - 0x10ac], ebx
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], esi
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 sym._ChooseFontW_4
sub esp, 4
test eax, eax
je 0x40852f
mov eax, dword [0x414054]
mov dword [esp], eax
call sym._DeleteObject_4
push eax
mov dword [esp], esi
call sym._CreateFontIndirectW_4
push edx
mov dword [0x414054], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SelectObject_8
push ecx
mov ebx, eax
push ecx
mov dword [esp + 0xc], 0x41405c
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40d514
mov dword [esp], edi
call sym._GetTextExtentPoint32W_16
sub esp, 0x10
mov dword [esp + 4], 5
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._GetWindow_8
push esi
push esi
mov esi, eax
test eax, eax
je 0x407bf9
mov dword [ebp - 0x10c0], ebx
mov dword [esp], esi
mov dword [esp + 4], 0xffffffeb
call sym._GetWindowLongW_8
sub esp, 8
mov ebx, eax
mov dword [esp + 0xc], 1
mov eax, dword [0x414054]
mov dword [esp + 4], 0x30
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 1
mov eax, dword [0x414054]
mov dword [esp + 4], 0x30
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [0x414060]
mov ecx, 0x10
sub esp, 0x10
cmp eax, ecx
mov dword [esp + 8], 1
cmovl eax, ecx
mov dword [esp + 4], 0x1a0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [0x414060]
mov ecx, 0x10
sub esp, 0x10
cmp eax, ecx
mov dword [esp + 8], 1
cmovl eax, ecx
mov dword [esp + 4], 0x1a0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._InvalidateRect_12
sub esp, 0xc
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call sym._InvalidateRect_12
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], 2
call sym._GetWindow_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x407acc
mov ebx, dword [ebp - 0x10c0]
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._SelectObject_8
push ebx
push ebx
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._ReleaseDC_8
xor eax, eax
sub esp, 8
jmp 0x4074fd
mov eax, dword [ebp - 0x10bc]
mov ecx, dword [0x41404c]
mov edx, 0x1fc
call dbg.toggle_child
xor eax, eax
jmp 0x4074fd
mov eax, dword [ebp - 0x10bc]
mov ecx, dword [0x414048]
mov edx, 0x1f7
call dbg.toggle_child
xor eax, eax
jmp 0x4074fd
mov eax, dword [ebp - 0x10bc]
mov ecx, dword [0x414050]
mov edx, 0x1fb
call dbg.toggle_child
xor eax, eax
jmp 0x4074fd
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [0x41404c]
mov dword [esp], eax
call sym._GetClientRect_8
mov eax, dword [ebp - 0x80c]
sub esp, 8
add eax, 2
add dword [esi + 4], eax
jmp 0x4074c8
lea eax, [ebp - 0x1018]
lea esi, [ebp - 0x10b4]
mov dword [ebp - 0x1018], 0x3c
mov dword [esp + 4], eax
mov eax, dword [0x41402c]
mov dword [esp], eax
call sym._GetWindowInfo_8
mov eax, dword [ebp - 0x100c]
sub eax, dword [ebp - 0x1014]
mov dword [ebp - 0x10b0], eax
sub esp, 8
mov eax, dword [ebp - 0x1008]
sub eax, dword [ebp - 0x1010]
mov dword [ebp - 0x1074], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareWineWineFile
mov dword [esp], 0x80000001
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x407d80
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
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 sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
jne 0x40752d
lea eax, [ebp - 0x1014]
mov dword [esp + 0x14], 4
lea esi, [ebp - 0x818]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.startX
mov eax, dword [ebp - 0x10b4]
mov dword [esp], eax
call sym._RegSetValueExW_24
lea eax, [ebp - 0x1010]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.startY
mov eax, dword [ebp - 0x10b4]
mov dword [esp], eax
call sym._RegSetValueExW_24
lea eax, [ebp - 0x10b0]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.width
mov eax, dword [ebp - 0x10b4]
mov dword [esp], eax
call sym._RegSetValueExW_24
lea eax, [ebp - 0x1074]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.height
mov eax, dword [ebp - 0x10b4]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5c
mov eax, dword [0x414054]
mov dword [esp], eax
call sym._GetObjectW_12
sub esp, 0xc
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.logfont
mov eax, dword [ebp - 0x10b4]
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebp - 0x10b4]
sub esp, 0x18
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x40752d
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [0x414048]
mov dword [esp], eax
call sym._GetClientRect_8
mov eax, dword [ebp - 0x80c]
sub dword [esi + 0xc], eax
sub esp, 8
jmp 0x4074f8
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [0x414050]
mov dword [esp], eax
call sym._GetClientRect_8
mov eax, dword [ebp - 0x80c]
sub esp, 8
add eax, 2
add dword [esi + 4], eax
jmp 0x4074e0
cmp eax, 0xe146
ja case.0x407f60.57653
cmp eax, 0xe12f
jbe 0x40811b
lea edx, [eax - 0xe130]
cmp edx, 0x16
ja case.0x407f60.57653
jmp dword [edx*4 + 0x40d09c]
lea esi, [ebp - 0x1018]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4b0
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._WinHelpW_16
xor eax, eax
sub esp, 0x10
jmp 0x4074fd
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x226
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
jmp 0x4074fd
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
jmp 0x407fcd
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x227
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
jmp 0x4074fd
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x228
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
jmp 0x4074fd
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x222
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], ebx
call sym._IsIconic_4
sub esp, 4
test eax, eax
je 0x4073f1
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._ShowWindow_8
xor eax, eax
sub esp, 8
jmp 0x4074fd
cmp eax, 0xfc
je 0x40846f
ja 0x4081d4
cmp eax, 0x69
je 0x4084b8
cmp eax, 0x73
jne 0x408685
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
jmp 0x4074fd
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x10bc]
call dbg.display_error
xor eax, eax
jmp 0x4074fd
cmp eax, 0x8004
je 0x408327
cmp eax, 0x9001
je 0x408220
cmp eax, 0x70b
jne case.0x407f60.57653
mov dword [esp + 0x14], 0x8000
lea edi, [ebp - 0x1018]
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 1
mov dword [esp + 4], 0x64
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadImageW_24
sub esp, 0x18
mov esi, eax
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4b0
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._ShellAboutW_16
xor eax, eax
sub esp, 0x10
jmp 0x4074fd
call dbg.refresh_drives
xor eax, eax
jmp 0x4074fd
cmp eax, 0xfd
jne 0x408685
mov dword [esp + 4], 1
mov ebx, dword [ebp - 0x10bc]
mov dword [esp], ebx
call sym._WNetDisconnectDialog_8
sub esp, 8
mov edx, eax
test eax, eax
je 0x4081c8
cmp eax, 0xffffffff
je 0x4073f1
cmp eax, 0x4b8
je 0x408627
mov eax, ebx
call dbg.display_error
xor eax, eax
jmp 0x4074fd
lea edi, [ebp - 0x1018]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4b5
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 4], 5
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._GetWindow_8
sub esp, 8
mov esi, eax
test eax, eax
je 0x4082b7
mov ebx, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp + 4], 0xffffffeb
mov dword [esp], esi
call sym._GetWindowLongW_8
sub esp, 8
test eax, eax
je 0x40829e
add eax, 0xc30
mov dword [esp + 4], edi
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x408639
mov dword [esp], esi
mov dword [esp + 4], 2
call sym._GetWindow_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x40826e
lea esi, [ebp - 0x818]
mov dword [esp], 0x104
xor ebx, ebx
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
xor ecx, ecx
push edx
push edx
mov eax, dword [0x414870]
mov edx, dword [eax]
mov dword [esp + 0x18], ecx
lea ecx, [ebp - 0x10b0]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x1074]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov ebx, dword [ebp - 0x10bc]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [edx + 0xc]
sub esp, 0x1c
test eax, eax
js 0x408709
mov edx, dword [ebp - 0x10b0]
mov ecx, dword [ebp - 0x10bc]
jmp 0x4078d5
mov ebx, dword [0x414bc0]
xor eax, eax
test ebx, ebx
sete al
mov dword [0x414bc0], eax
jne 0x4085ba
mov dword [esp + 4], 0x414bc4
mov ebx, dword [ebp - 0x10bc]
mov dword [esp], ebx
call sym._GetWindowRect_8
push esi
push esi
lea esi, [ebp - 0x818]
mov dword [esp], ebx
call sym._IsZoomed_4
push edi
mov dword [0x414bd4], eax
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0xbf83
mov dword [esp], ebx
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
mov dword [esp + 0xc], 2
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._MapWindowPoints_16
mov eax, dword [0x414bc4]
sub eax, dword [ebp - 0x818]
mov dword [ebp - 0x818], eax
mov eax, dword [0x414bc8]
sub esp, 0x10
sub eax, dword [ebp - 0x814]
mov dword [ebp - 0x814], eax
xor eax, eax
mov dword [esp], eax
call sym._GetSystemMetrics_4
push edx
add eax, dword [0x414bcc]
sub eax, dword [ebp - 0x810]
mov dword [ebp - 0x810], eax
mov dword [esp], 1
call sym._GetSystemMetrics_4
push ecx
mov ecx, dword [ebp - 0x814]
add eax, dword [0x414bd0]
sub eax, dword [ebp - 0x80c]
mov dword [ebp - 0x80c], eax
sub eax, ecx
mov edx, dword [ebp - 0x818]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x810]
mov dword [esp + 8], ecx
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._MoveWindow_24
sub esp, 0x18
mov ecx, dword [0x414bc0]
xor eax, eax
mov dword [esp + 4], 0x8004
test ecx, ecx
setne al
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x414040]
mov dword [esp], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
jmp 0x4074fd
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._WNetConnectionDialog_8
sub esp, 8
mov edx, eax
test eax, eax
je 0x4081c8
cmp eax, 0xffffffff
je 0x4073f1
cmp eax, 0x4b8
je 0x408627
mov eax, dword [ebp - 0x10bc]
call dbg.display_error
xor eax, eax
jmp 0x4074fd
mov dword [esp], str.SHELL32.DLL
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov edi, eax
mov dword [esp + 4], 0x64
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadIconW_8
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x3d
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x4073f1
xor edi, edi
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov ebx, dword [ebp - 0x10bc]
mov dword [esp], ebx
call eax
xor eax, eax
sub esp, 0x18
jmp 0x4074fd
call sym._CommDlgExtendedError_0
test eax, eax
je 0x407c07
lea edx, [ebp - 0x1018]
mov dword [esp + 0xc], 0x400
lea esi, [ebp - 0x818]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x44d
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], esi
mov dword [esp + 4], 0x44f
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
xor ecx, ecx
lea edx, [ebp - 0x1018]
sub esp, 0x10
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._MessageBoxW_16
sub esp, 0x10
jmp 0x407c07
mov ecx, dword [0x414bc8]
mov edx, dword [0x414bc4]
mov dword [esp + 0x14], 1
mov eax, dword [0x414bd0]
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [0x414bcc]
mov dword [esp + 8], ecx
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._MoveWindow_24
sub esp, 0x18
cmp dword [0x414bd4], 0
je 0x40843c
mov dword [esp + 4], 0x1000000
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._ShowWindow_8
push ebx
push ebx
jmp 0x40843c
mov eax, dword [ebp - 0x10bc]
call dbg.display_network_error
xor eax, eax
jmp 0x4074fd
xor edi, edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x222
mov eax, dword [0x414044]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], esi
call sym._IsIconic_4
push edx
test eax, eax
je 0x4073f1
mov dword [esp], esi
mov dword [esp + 4], 1
call sym._ShowWindow_8
xor eax, eax
push esi
push esi
jmp 0x4074fd
lea ecx, [ebp - 0x1018]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x4b0
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
lea edx, [ebp - 0x818]
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 4], 0x4b7
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
xor eax, eax
lea ecx, [ebp - 0x1018]
lea edx, [ebp - 0x818]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x10bc]
mov dword [esp], eax
call sym._MessageBoxW_16
sub esp, 0x10
jmp 0x407934
xor edx, edx
jmp 0x40831c