Function at 0x409450
Capabilities:
Get process heap flags
Set current directory

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x1078
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 edx, dword [ecx + 0xc]
mov esi, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x104c], edx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call sym._GetWindowLongW_8
sub esp, 8
mov ebx, eax
test eax, eax
je 0x409590
cmp esi, 0x7b
je 0x409f30
ja 0x4094d0
cmp esi, 0x2c
ja 0x4096b0
test esi, esi
je case.0x4094c6.0
cmp esi, 0x2c
ja case.0x4094c6.0
jmp dword [esi*4 + 0x40d0f8]
cmp esi, 0x120
je 0x40a098
ja 0x4095b8
cmp esi, 0x111
je 0x409a10
ja 0x4098c0
cmp esi, 0x82
je 0x409ed0
cmp esi, 0x100
jne case.0x4094c6.0
cmp edi, 0x1b
jne 0x409588
call sym._GetCapture_0
cmp dword [ebp - 0x1050], eax
jne 0x409588
mov eax, dword [0x414be0]
mov dword [ebx + 0x15c], eax
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call sym._GetClientRect_8
mov ecx, dword [ebp - 0x80c]
mov edx, dword [ebp - 0x810]
mov eax, ebx
sub esp, 8
call dbg.resize_tree
mov dword [0x414be0], 0xffffffff
call sym._ReleaseCapture_0
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call sym._LoadCursorW_8
sub esp, 8
mov dword [esp], eax
call sym._SetCursor_4
sub esp, 4
xor eax, eax
jmp 0x409673
mov dword [esp + 8], 0xdbd
mov dword [esp + 4], str._private_tmp_game_porting_toolkit_20240316_16507_xzjwx8_wine_programs_winefile_winefile.c
mov dword [esp], str.child
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x4094a1
cmp esi, 0x202
je 0x4099f0
ja 0x4099a0
cmp esi, 0x200
je 0x40a0e8
cmp esi, 0x201
jne case.0x4094c6.0
lea eax, [ebp - 0x818]
movsx esi, word [ebp - 0x104c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call sym._GetClientRect_8
mov eax, dword [ebx + 0x15c]
sub esp, 8
lea edx, [eax - 2]
cmp edx, esi
jg 0x409588
lea edx, [eax + 2]
cmp edx, esi
jl 0x409588
mov dword [0x414be0], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call sym._SetCapture_4
xor eax, eax
sub esp, 4
jmp 0x409673
cmp edi, 1
je case.0x4094c6.0
mov eax, dword [ebp - 0x104c]
mov ecx, eax
movzx edx, ax
mov eax, ebx
shr ecx, 0x10
call dbg.resize_tree
mov eax, dword [ebp - 0x104c]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call sym._DefMDIChildProcW_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
test edi, edi
jne 0x409588
mov ecx, dword [ebp - 0x104c]
xor edx, edx
mov eax, esi
call dbg.CtxMenu_HandleMenuMsg
test eax, eax
setne al
movzx eax, al
jmp 0x409673
cmp esi, 0x4e
jne case.0x4094c6.0
mov eax, dword [ebp - 0x104c]
lea esi, [ebx + 0x98]
cmp dword [eax + 4], 2
jne 0x4096ca
lea esi, [ebx + 4]
mov edi, dword [ebp - 0x104c]
mov eax, dword [edi + 8]
cmp eax, 0xfffffebb
je 0x40a1c0
cmp eax, 0xfffffebf
jne 0x409588
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
lea ebx, [esi + edx*4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1050], edx
sub eax, dword [ebx + 0x30]
mov edi, eax
lea eax, [ebp - 0x1038]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sym._GetClientRect_8
mov edx, dword [ebp - 0x1050]
add dword [ebx + 8], edi
add dword [ebx + 0x30], edi
sub esp, 8
cmp edx, 9
jg 0x409754
lea eax, [esi + edx*4 + 0x5c]
lea edx, [esi + 0x84]
mov ecx, edx
sub ecx, eax
and ecx, 4
je 0x409748
add dword [eax], edi
add eax, 4
cmp eax, edx
je 0x409754
lea esi, [esi]
add dword [eax], edi
add dword [eax + 4], edi
add eax, 8
cmp eax, edx
jne 0x409748
mov dword [esp + 4], 0
mov eax, dword [esi]
mov dword [esp], eax
call sym._GetScrollPos_8
mov edx, dword [ebp - 0x1030]
mov dword [ebp - 0x1050], eax
mov ecx, eax
mov eax, dword [ebx + 0x5c]
sub esp, 8
mov dword [ebp - 0x1010], edx
mov edx, dword [ebp - 0x102c]
mov dword [ebp - 0x1014], 0
sub eax, ecx
mov dword [ebp - 0x100c], edx
mov edx, dword [ebx + 0x58]
mov dword [ebp - 0x814], 0
sub edx, ecx
mov ecx, edx
mov edx, dword [ebp - 0x1030]
mov dword [ebp - 0x810], edx
mov edx, dword [ebp - 0x102c]
mov dword [ebp - 0x80c], edx
xor edx, edx
test eax, eax
cmovs eax, edx
lea edx, [ebp - 0x818]
mov dword [ebp - 0x1018], eax
xor eax, eax
test ecx, ecx
cmovs ecx, eax
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x818], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [esi]
mov dword [esp], eax
call sym._ScrollWindowEx_32
mov eax, dword [ebx + 0x5c]
lea edx, [ebp - 0x818]
sub esp, 0x20
mov dword [ebp - 0x810], eax
mov dword [esp + 0xc], 0x101
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [esi]
mov dword [esp], eax
call sym._RedrawWindow_16
mov eax, dword [ebp - 0x104c]
sub esp, 0x10
cmp dword [eax + 8], 0xfffffeb9
jne 0x409588
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x80]
mov dword [esp + 4], 0x194
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 4], 0
mov eax, dword [esi]
mov dword [esp], eax
call sym._GetScrollPos_8
sub esp, 8
cmp dword [ebp - 0x1050], eax
je 0x409588
mov eax, esi
call dbg.set_header
xor eax, eax
jmp 0x409673
cmp esi, 0x117
jne case.0x4094c6.0
mov ecx, dword [ebp - 0x104c]
mov edx, edi
mov eax, 0x117
call dbg.CtxMenu_HandleMenuMsg
test eax, eax
jne 0x409588
mov edx, dword [ebx + 0xe38]
xor eax, eax
mov dword [esp + 4], 0x194
test edx, edx
sete al
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x41403c]
mov dword [esp], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp dword [ebx + 0xe38], 1
sete al
mov dword [esp + 4], 0x195
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x41403c]
mov dword [esp], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp dword [ebx + 0xe38], 2
sete al
mov dword [esp + 4], 0x196
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x41403c]
mov dword [esp], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp dword [ebx + 0xe38], 3
sete al
mov dword [esp + 4], 0x197
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x41403c]
mov dword [esp], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
jmp 0x409673
cmp esi, 0xbf80
jne case.0x4094c6.0
call sym._GetFocus_0
lea esi, [ebx + 0x98]
cmp dword [ebx + 4], eax
je 0x409a50
movzx eax, di
cmp di, 0x19e
ja 0x40a5a0
cmp eax, 0x193
jbe 0x40a410
lea edx, [eax - 0x194]
cmp edx, 0xa
ja case.0x4099e8.408
jmp dword [edx*4 + 0x40d1ac]
call sym._GetCapture_0
cmp dword [ebp - 0x1050], eax
jne 0x409588
call sym._ReleaseCapture_0
xor eax, eax
jmp 0x409673
call sym._GetFocus_0
shr edi, 0x10
cmp eax, dword [ebx + 4]
je 0x40a520
cmp edi, 1
je 0x40a540
lea edx, [ebx + 0x98]
cmp edi, 2
jne 0x409588
mov ecx, dword [ebp - 0x1050]
mov eax, ebx
call dbg.activate_entry
xor eax, eax
jmp 0x409673
lea esi, [ebx + 4]
jmp 0x4099c0
mov eax, dword [ebx]
mov dword [esp + 8], 0x1f
lea edx, [ebx + 4]
mov ecx, 3
mov dword [esp + 4], 0
mov dword [esp], 2
call dbg.create_tree_window
mov ecx, dword [ebx + 0x574]
mov eax, dword [ebx]
lea edx, [ebx + 0x98]
add ebx, 0x36c
mov dword [esp], 5
mov dword [esp + 8], ecx
mov ecx, 6
mov dword [esp + 4], ebx
call dbg.create_tree_window
xor eax, eax
jmp 0x409673
mov eax, dword [ebp - 0x104c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 4]
cmp eax, 3
je 0x40a5d8
cmp eax, 6
jne case.0x4094c6.44
mov dword [esp], 0xffffffff
mov edx, dword [ebp - 0x104c]
lea eax, [ebx + 0x98]
call dbg.draw_item
lea esi, [esi]
nop
mov eax, 1
jmp 0x409673
lea eax, [ebx + 0x164]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
jne 0x40a400
mov ecx, dword [ebx + 0x12c]
test ecx, ecx
je 0x40a1b0
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call sym._SetFocus_4
xor eax, eax
sub esp, 4
jmp 0x409673
cmp word [ebp - 0x104c], 1
jne case.0x4094c6.0
lea edx, [ebp - 0x818]
mov dword [esp], edx
call sym._GetCursorPos_4
lea edx, [ebp - 0x818]
sub esp, 4
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call sym._ScreenToClient_8
mov eax, dword [ebx + 0x15c]
mov edx, dword [ebp - 0x818]
sub esp, 8
lea ecx, [eax - 2]
cmp edx, ecx
jl case.0x4094c6.0
add eax, 2
cmp edx, eax
jg case.0x4094c6.0
mov dword [esp + 4], 0x7f84
mov dword [esp], 0
call sym._LoadCursorW_8
sub esp, 8
mov dword [esp], eax
call sym._SetCursor_4
sub esp, 4
jmp 0x409af0
mov ebx, dword [ebp - 0x104c]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x24
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call sym._DefMDIChildProcW_16
shl dword [ebx + 0x20], 1
xor eax, eax
sub esp, 0x10
shl dword [ebx + 0x24], 1
jmp 0x409673
lea eax, [ebp - 0x1018]
lea esi, [ebp - 0x818]
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x1050]
mov dword [esp], edi
call sym._GetClientRect_8
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._BeginPaint_8
mov eax, dword [ebx + 0x15c]
sub esp, 8
lea edx, [eax - 2]
add eax, 3
mov dword [ebp - 0x1018], edx
mov dword [ebp - 0x1010], eax
mov dword [esp], 1
call sym._GetStockObject_4
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x818]
mov dword [esp], eax
call sym._SelectObject_8
mov ebx, eax
mov eax, dword [ebp - 0x100c]
sub esp, 8
add eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1010]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1014]
sub eax, 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1018]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x818]
mov dword [esp], eax
call sym._Rectangle_20
sub esp, 0x14
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x818]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._EndPaint_8
xor eax, eax
sub esp, 8
jmp 0x409673
cmp eax, 0x192
jne 0x40aa04
cmp dword [esi + 0x88], 0x7f
je 0x409af0
mov dword [esi + 0x88], 0x7f
mov edx, 1
mov eax, esi
xor edi, edi
call dbg.calc_widths
mov eax, esi
call dbg.set_header
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov eax, dword [esi]
mov dword [esp], eax
call sym._InvalidateRect_12
xor eax, eax
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0x191
mov eax, dword [0x41403c]
mov dword [esp], eax
call sym._CheckMenuItem_12
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0x192
mov eax, dword [0x41403c]
mov dword [esp], eax
call sym._CheckMenuItem_12
sub esp, 0xc
jmp 0x409af0
mov eax, dword [ebx + 0xe38]
test eax, eax
je 0x409af0
mov dword [ebx + 0xe38], 0
mov eax, ebx
call dbg.refresh_child
jmp 0x409af0
mov eax, dword [ebx + 0x15c]
mov dword [0x414be0], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call sym._SetCapture_4
sub esp, 4
jmp 0x409af0
lea edi, [ebp - 0x818]
xor eax, eax
mov ecx, 0x83
mov edx, edi
mov dword [ebp - 0x1054], edi
lea esi, [ebx + 0x36c]
rep stosd dword es:[edi], eax
mov edi, edx
mov eax, esi
sub edi, ebx
nop
mov edx, eax
add eax, 2
movzx edx, word [edx]
mov word [edi + eax - 0x36e], dx
test dx, dx
jne 0x409dd0
mov eax, dword [ebx + 0x574]
mov dword [ebp - 0x610], eax
mov eax, dword [ebp - 0x1054]
mov dword [esp + 0xc], dbg.FilterDialogDlgProc
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp + 4], 0x69
mov dword [esp + 8], eax
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
cmp eax, 1
jne 0x409af0
nop
mov edx, esi
add esi, 2
movzx eax, word [edi + esi - 0x36e]
mov word [edx], ax
test ax, ax
jne 0x409e30
mov eax, dword [ebp - 0x610]
mov dword [ebx + 0x574], eax
mov eax, ebx
call dbg.refresh_right_pane
jmp 0x409af0
cmp dword [ebx + 0xe38], 3
je 0x409af0
mov dword [ebx + 0xe38], 3
mov eax, ebx
call dbg.refresh_child
jmp 0x409af0
cmp dword [ebx + 0xe38], 2
je 0x409af0
mov dword [ebx + 0xe38], 2
mov eax, ebx
call dbg.refresh_child
jmp 0x409af0
cmp dword [ebx + 0xe38], 1
je 0x409af0
mov dword [ebx + 0xe38], 1
mov eax, ebx
call dbg.refresh_child
jmp 0x409af0
lea eax, [ebx + 0x578]
call dbg.free_entries
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]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffeb
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call sym._SetWindowLongW_12
xor eax, eax
sub esp, 0xc
jmp 0x409673
mov eax, dword [ebp - 0x104c]
lea esi, [ebx + 4]
movsx edx, ax
sar eax, 0x10
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x104c], edx
mov dword [ebp - 0x1018], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._ScreenToClient_8
mov eax, dword [ebp - 0x1014]
movzx edx, word [ebp - 0x1018]
sub esp, 8
shl eax, 0x10
mov dword [esp + 8], 0
or eax, edx
mov dword [esp + 4], 0x201
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._SendMessageW_16
mov eax, dword [ebp - 0x1014]
movzx edx, word [ebp - 0x1018]
sub esp, 0x10
shl eax, 0x10
mov dword [esp + 8], 0
or eax, edx
mov dword [esp + 4], 0x202
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._SendMessageW_16
sub esp, 0x10
call sym._GetFocus_0
mov edx, eax
mov eax, dword [ebx + 4]
cmp eax, edx
je 0x409fe8
mov eax, dword [ebx + 0x98]
lea esi, [ebx + 0x98]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
cmp eax, 0xffffffff
je 0x409588
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x199
mov eax, dword [esi]
mov dword [esp], eax
call sym._SendMessageW_16
mov edx, dword [ebp - 0x1050]
sub esp, 0x10
call dbg.get_to_absolute_pidl
mov edi, eax
test eax, eax
je 0x409588
lea eax, [ebp - 0x1040]
lea esi, [ebp - 0x103c]
mov dword [esp + 4], 0x411e48
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._SHBindToParent_16
sub esp, 0x10
test eax, eax
jns 0x40a5f2
mov eax, dword [0x414874]
mov edx, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [edx + 0x14]
xor eax, eax
sub esp, 8
jmp 0x409673
mov eax, dword [0x414888]
test eax, eax
je 0x409588
mov dword [ebp - 0x818], 0
lea ecx, [ebp - 0x818]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov ebx, dword [ebp - 0x104c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x120
mov dword [esp], eax
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x818]
sub esp, 0x14
jmp 0x409673
call sym._GetCapture_0
cmp dword [ebp - 0x1050], eax
jne 0x409588
lea eax, [ebp - 0x818]
movsx esi, word [ebp - 0x104c]
mov dword [ebp - 0x1054], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call sym._GetClientRect_8
sub esp, 8
test esi, esi
js 0x409588
mov edx, dword [ebp - 0x810]
cmp edx, esi
jle 0x409588
mov dword [ebx + 0x15c], esi
mov ecx, dword [ebp - 0x80c]
mov eax, ebx
call dbg.resize_tree
lea eax, [esi - 2]
add esi, 3
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x810], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x1054]
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x1050]
mov dword [esp], edi
call sym._InvalidateRect_12
mov eax, dword [ebx + 4]
sub esp, 0xc
mov dword [esp], eax
call sym._UpdateWindow_4
sub esp, 4
mov dword [esp], edi
call sym._UpdateWindow_4
mov eax, dword [ebx + 0x98]
sub esp, 4
mov dword [esp], eax
call sym._UpdateWindow_4
xor eax, eax
sub esp, 4
jmp 0x409673
mov eax, dword [ebx + 4]
jmp 0x409b2e
mov eax, dword [ebp - 0x104c]
xor ebx, ebx
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x1050], edi
lea edi, [esi + edi*4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18b
mov eax, dword [esi]
mov dword [esp], eax
call sym._SendMessageW_16
mov dword [edi + 8], 0
mov dword [ebp - 0x1058], eax
mov eax, dword [esi]
sub esp, 0x10
mov dword [ebp - 0x105c], edi
mov dword [esp], eax
call sym._GetDC_4
mov edi, eax
mov eax, dword [0x414054]
sub esp, 4
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._SelectObject_8
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x1054], ecx
mov ecx, dword [ebp - 0x1058]
sub esp, 8
test ecx, ecx
jle 0x40a306
mov dword [ebp - 0x1060], eax
nop
mov dword [esp + 8], ebx
add ebx, 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x199
mov eax, dword [esi]
mov dword [esp], eax
call sym._SendMessageW_16
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov ecx, eax
sub esp, 0x10
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], 0
mov eax, dword [esi]
mov dword [ebp - 0x800], edi
mov dword [ebp - 0x804], eax
mov eax, dword [ebp - 0x1050]
mov dword [ebp - 0x7f0], 0
mov dword [ebp - 0x7f8], 0
mov dword [ebp - 0x7f4], 0
mov dword [ebp - 0x7fc], 0
mov dword [esp], eax
mov edx, dword [ebp - 0x1054]
mov eax, esi
call dbg.draw_item
cmp dword [ebp - 0x1058], ebx
jne 0x40a250
mov eax, dword [ebp - 0x1060]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SelectObject_8
sub esp, 8
mov dword [esp + 4], edi
mov eax, dword [esi]
mov dword [esp], eax
call sym._ReleaseDC_8
mov eax, dword [ebp - 0x105c]
sub esp, 8
mov edx, dword [eax + 8]
test edx, edx
je 0x40a347
mov eax, dword [0x41405c]
lea eax, [eax + eax*2]
add edx, eax
mov eax, 0x10
cmp edx, eax
cmovl edx, eax
mov eax, dword [ebp - 0x105c]
mov dword [eax + 8], edx
add edx, dword [eax + 0x58]
mov eax, dword [ebp - 0x1050]
cmp eax, 8
jg 0x40a374
lea eax, [esi + eax*4 + 0xc]
lea ecx, [esi + 0x30]
lea esi, [esi]
mov dword [eax + 0x50], edx
add edx, dword [eax]
add eax, 4
cmp eax, ecx
jne 0x40a368
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x194
mov eax, dword [esi]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x104c]
mov dword [ebp - 0x818], 1
mov edi, dword [ebp - 0x1054]
sub esp, 0x10
mov eax, dword [eax + 0xc]
mov edx, dword [esi + eax*4 + 8]
mov dword [ebp - 0x814], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x120c
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [esi]
mov dword [esp], eax
call sym._InvalidateRect_12
xor eax, eax
sub esp, 0xc
jmp 0x409673
call dbg.set_space_status
jmp 0x409b1a
cmp eax, 0x6b
je 0x40a777
ja 0x40a651
cmp eax, 0x65
je 0x40a763
cmp eax, 0x6a
jne 0x409588
lea eax, [ebp - 0x818]
lea edi, [ebp - 0x1018]
mov dword [ebp - 0x1054], eax
mov ecx, eax
mov edx, edi
mov eax, esi
call dbg.prompt_target
test eax, eax
je 0x409af0
xor eax, eax
mov edx, dword [ebp - 0x1050]
cmp word [ebp - 0x1018], 0
mov dword [ebp - 0x1028], 0
mov word [ebp - 0x101c], ax
mov eax, dword [ebp - 0x1054]
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x102c], eax
mov eax, edi
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x1038], edx
mov dword [ebp - 0x1034], 1
mov dword [ebp - 0x1030], edi
je 0x40a4c1
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40a4b8
sub eax, edi
xor edi, edi
sar eax, 1
cmp word [ebp - 0x818], 0
mov word [ebp + eax*2 - 0x1016], di
mov eax, dword [ebp - 0x1054]
je 0x40a4e9
nop
add eax, 2
cmp word [eax], 0
jne 0x40a4e0
mov edi, dword [ebp - 0x1054]
xor edx, edx
sub eax, edi
sar eax, 1
mov word [ebp + eax*2 - 0x816], dx
lea eax, [ebp - 0x1038]
mov dword [esp], eax
call sym._SHFileOperationW_4
sub esp, 4
test eax, eax
jne 0x409af0
jmp 0x409e97
cmp edi, 1
je 0x40a83e
cmp edi, 2
jne 0x409588
lea edx, [ebx + 4]
jmp 0x409a39
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x199
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call sym._SendMessageW_16
mov dword [ebx + 0x128], eax
sub esp, 0x10
xor eax, eax
jmp 0x409673
cmp eax, 0xe130
je 0x40a71a
cmp eax, 0xe138
je 0x40a708
cmp eax, 0x6a8
jne 0x40a986
call dbg.refresh_drives
mov eax, ebx
call dbg.refresh_child
jmp 0x409af0
mov dword [esp], 0xffffffff
mov edx, dword [ebp - 0x104c]
lea eax, [ebx + 4]
call dbg.draw_item
jmp 0x409af0
mov eax, dword [ebp - 0x1040]
lea ecx, [ebp - 0x1038]
mov edx, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x411c68
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov esi, dword [ebp - 0x1050]
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [edx + 0x28]
sub esp, 0x1c
test eax, eax
jns 0x40a8a0
mov eax, dword [ebp - 0x1040]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x40a079
cmp eax, 0x6c
jne case.0x4099e8.408
mov eax, dword [ebp - 0x1050]
xor ecx, ecx
lea edi, [ebp - 0x818]
mov dword [ebp - 0x1008], 0
mov dword [ebp - 0x100c], 0
mov edx, edi
mov dword [ebp - 0x1018], eax
mov eax, 0x40
mov dword [ebp - 0x1004], 0
mov dword [ebp - 0x1000], 0
mov word [ebp - 0xffc], cx
mov dword [ebp - 0x1014], 3
mov dword [ebp - 0x1010], edi
mov word [ebp - 0x1008], ax
mov eax, dword [esi + 0x90]
mov dword [ebp - 0x1054], edi
call dbg.get_path
cmp word [ebp - 0x818], 0
je 0x40ab59
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40a6e0
mov edi, dword [ebp - 0x1054]
xor edx, edx
sub eax, edi
sar eax, 1
mov word [ebp + eax*2 - 0x816], dx
lea eax, [ebp - 0x1018]
jmp 0x40a503
mov edx, dword [ebx]
mov eax, dword [esi + 0x90]
call dbg.show_properties_dlg
jmp 0x409af0
mov ecx, dword [ebp - 0x1050]
lea eax, [ebx + 0x164]
xor edx, edx
call dbg.alloc_child_window
mov ebx, eax
call dbg.create_child_window
test eax, eax
jne 0x409af0
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
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 0x409af0
mov ecx, dword [ebp - 0x1050]
mov edx, esi
mov eax, ebx
call dbg.activate_entry
jmp 0x409af0
lea eax, [ebp - 0x818]
lea edi, [ebp - 0x1018]
mov dword [ebp - 0x1054], eax
mov ecx, eax
mov edx, edi
mov eax, esi
call dbg.prompt_target
test eax, eax
je 0x409af0
mov eax, dword [ebp - 0x1054]
mov edx, dword [ebp - 0x1050]
xor esi, esi
mov dword [ebp - 0x1028], 0
cmp word [ebp - 0x1018], 0
mov word [ebp - 0x101c], si
mov dword [ebp - 0x102c], eax
mov eax, edi
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x1038], edx
mov dword [ebp - 0x1034], 2
mov dword [ebp - 0x1030], edi
je 0x40a809
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40a800
sub eax, edi
xor ecx, ecx
sar eax, 1
cmp word [ebp - 0x818], 0
mov word [ebp + eax*2 - 0x1016], cx
mov eax, dword [ebp - 0x1054]
je 0x40a4e9
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40a830
jmp 0x40a4e9
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov esi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x199
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._SendMessageW_16
mov ecx, esi
mov edx, eax
mov eax, dword [ebp - 0x1050]
sub esp, 0x10
mov dword [esp], eax
mov eax, ebx
call dbg.set_curdir
xor eax, eax
jmp 0x409673
call sym._CreatePopupMenu_0
mov edx, dword [ebp - 0x1038]
mov dword [ebp - 0x818], 0
lea ecx, [ebp - 0x818]
mov esi, eax
mov dword [ebp - 0x1054], ecx
mov dword [0x41488c], 0
mov eax, dword [edx]
mov dword [0x414888], 0
mov dword [esp], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x411c48
mov dword [ebp - 0x105c], edx
call dword [eax]
mov edx, dword [ebp - 0x105c]
sub esp, 0xc
test eax, eax
jne 0x40a9c4
mov eax, dword [ebp - 0x818]
mov dword [0x414888], eax
test eax, eax
je 0x40a921
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 8]
mov edx, dword [ebp - 0x818]
sub esp, 4
mov dword [ebp - 0x1038], edx
test esi, esi
je 0x40a970
mov eax, dword [edx]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x7fff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], edx
call dword [eax + 0xc]
sub esp, 0x18
test eax, eax
jns 0x40aa7d
xor ecx, ecx
mov dword [0x41488c], ecx
mov dword [0x414888], ecx
mov eax, dword [ebp - 0x1038]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x40a63b
cmp eax, 0x8005
jne 0x409588
mov edx, 1
mov eax, esi
xor ebx, ebx
call dbg.calc_widths
mov eax, esi
call dbg.set_header
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov eax, dword [esi]
mov dword [esp], eax
call sym._InvalidateRect_12
sub esp, 0xc
jmp 0x409af0
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1054]
mov dword [esp], edx
mov dword [esp + 4], 0x411c58
mov dword [esp + 8], ecx
mov dword [ebp - 0x105c], edx
call dword [eax]
mov edx, dword [ebp - 0x105c]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x818]
jne 0x40a90c
mov dword [0x41488c], eax
jmp 0x40a90c
cmp eax, 0x191
jne 0x409588
cmp dword [esi + 0x88], 0
je 0x409af0
xor eax, eax
mov edx, 1
mov dword [esi + 0x88], eax
mov eax, esi
call dbg.calc_widths
mov eax, esi
call dbg.set_header
xor eax, eax
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sym._InvalidateRect_12
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0x191
mov eax, dword [0x41403c]
mov dword [esp], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
mov dword [esp + 8], eax
jmp 0x409d4a
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [ebp - 0x1058]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x104c]
mov dword [esp + 4], 0x102
mov dword [esp + 8], ecx
mov dword [esp], esi
call sym._TrackPopupMenu_28
xor edx, edx
mov dword [0x41488c], edx
sub esp, 0x1c
mov dword [0x414888], edx
test eax, eax
je 0x40a970
mov dword [ebp - 0x80c], eax
xor eax, eax
xor esi, esi
mov edx, dword [ebp - 0x1050]
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x804], eax
xor eax, eax
mov dword [ebp - 0x7fc], eax
mov dword [ebp - 0x7f8], eax
mov eax, dword [ebp - 0x1038]
mov dword [ebp - 0x814], esi
mov esi, dword [ebp - 0x1054]
mov dword [ebp - 0x818], 0x24
mov dword [ebp - 0x810], edx
mov dword [ebp - 0x800], 1
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x10]
mov esi, eax
push edx
push edx
mov eax, dword [ebp - 0x1038]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
test esi, esi
js 0x40a63b
mov eax, ebx
call dbg.refresh_child
jmp 0x40a63b
mov eax, dword [ebp - 0x1054]
jmp 0x40a6e9