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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x1088
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.0040b8e8
sub esp, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov dword [esp + 4], 0xffffffeb
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x104c], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov esi, eax
test eax, eax
je 0x409f20
cmp ebx, 0x7b
je 0x40a6e0
ja 0x4099c0
cmp ebx, 0x2c
ja 0x409b08
test ebx, ebx
je case.0x4099b7.0
cmp ebx, 0x2c
ja case.0x4099b7.0
jmp dword [ebx*4 + 0x40d0e8]
cmp ebx, 0x120
je 0x40a280
jbe 0x409d80
cmp ebx, 0x202
je 0x40a2d0
jbe 0x409d12
cmp ebx, 0xbf80
jne case.0x4099b7.0
call dword [sym.imp.user32.dll_GetFocus]
lea ebx, [esi + 0x98]
cmp dword [esi + 4], eax
je 0x40a270
movzx eax, di
cmp di, 0x19e
ja 0x40a650
cmp eax, 0x193
ja 0x40a420
cmp eax, 0x6b
je 0x40ad40
jbe 0x40a32e
cmp eax, 0x6c
jne 0x40ae00
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 [ebx + 0x90]
mov dword [ebp - 0x1060], edi
call dbg.get_path
cmp word [ebp - 0x818], 0
je 0x40b157
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x409ac0
sub eax, dword [ebp - 0x1060]
xor edx, edx
sar eax, 1
mov word [ebp + eax*2 - 0x816], dx
lea eax, [ebp - 0x1018]
mov dword [esp], eax
call dword [sym.imp.shell32.dll_SHFileOperationW]
sub esp, 4
test eax, eax
je 0x40aee3
lea esi, [esi]
mov ebx, 1
jmp 0x409d02
cmp ebx, 0x4e
jne case.0x4099b7.0
mov eax, dword [ebp - 0x104c]
lea ebx, [esi + 0x98]
cmp dword [eax + 4], 2
je 0x40a268
mov edi, dword [ebp - 0x104c]
mov eax, dword [edi + 8]
cmp eax, 0xfffffebb
je 0x40a950
cmp eax, 0xfffffebf
jne 0x409d00
mov eax, edi
mov edx, dword [edi + 0xc]
mov eax, dword [eax + 0x14]
lea edi, [ebx + edx*4]
mov dword [ebp - 0x1050], edx
mov esi, dword [eax + 4]
lea eax, [ebp - 0x1038]
sub esi, dword [edi + 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov edx, dword [ebp - 0x1050]
add dword [edi + 8], esi
add dword [edi + 0x30], esi
sub esp, 8
cmp edx, 9
jg 0x409b99
lea eax, [ebx + edx*4 + 0x5c]
lea edx, [ebx + 0x84]
add dword [eax], esi
add eax, 4
cmp edx, eax
jne 0x409b90
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetScrollPos]
mov dword [ebp - 0x1054], eax
call eax
mov edx, dword [ebp - 0x1030]
mov ecx, eax
mov dword [ebp - 0x1050], eax
mov eax, dword [edi + 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 [edi + 0x58]
mov dword [ebp - 0x814], 0
sub edx, ecx
mov dword [esp + 0x1c], 2
mov ecx, edx
mov edx, dword [ebp - 0x1030]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [ebp - 0x810], edx
mov edx, dword [ebp - 0x102c]
mov dword [esp + 8], 0
mov dword [ebp - 0x80c], edx
xor edx, edx
test eax, eax
cmovs eax, edx
lea edx, [ebp - 0x818]
mov dword [esp + 4], esi
mov dword [esp + 0x10], edx
mov dword [ebp - 0x1018], eax
xor eax, eax
test ecx, ecx
cmovs ecx, eax
lea eax, [ebp - 0x1018]
mov dword [esp + 0xc], eax
mov dword [ebp - 0x818], ecx
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.user32.dll_ScrollWindowEx]
mov eax, dword [edi + 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 [ebx]
mov dword [esp], eax
call dword [sym.imp.user32.dll_RedrawWindow]
mov eax, dword [ebp - 0x104c]
sub esp, 0x10
cmp dword [eax + 8], 0xfffffeb9
jne 0x409d00
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 0x80]
mov dword [esp + 4], 0x194
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [ebp - 0x1054]
call eax
sub esp, 8
cmp dword [ebp - 0x1050], eax
je 0x409d00
mov eax, ebx
call dbg.set_header
lea esi, [esi]
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 ebx, 0x200
je 0x40a850
cmp ebx, 0x201
jne case.0x4099b7.0
lea eax, [ebp - 0x818]
movsx ebx, word [ebp - 0x104c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [esi + 0x15c]
sub esp, 8
lea edx, [eax - 2]
cmp edx, ebx
jg 0x409d00
lea edx, [eax + 2]
cmp edx, ebx
jl 0x409d00
mov dword [0x417be0], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetCapture]
sub esp, 4
jmp 0x409d00
cmp ebx, 0x111
je 0x40a2f0
jbe 0x409e70
cmp ebx, 0x117
jne case.0x4099b7.0
mov ecx, dword [ebp - 0x104c]
mov edx, edi
mov eax, 0x117
call dbg.CtxMenu_HandleMenuMsg
mov ebx, eax
test eax, eax
jne 0x409d00
mov edx, dword [esi + 0xe38]
xor eax, eax
mov edi, dword [sym.imp.user32.dll_CheckMenuItem]
mov dword [esp + 4], 0x194
test edx, edx
sete al
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x41703c]
mov dword [esp], eax
call edi
xor eax, eax
sub esp, 0xc
cmp dword [esi + 0xe38], 1
sete al
mov dword [esp + 4], 0x195
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x41703c]
mov dword [esp], eax
call edi
xor eax, eax
sub esp, 0xc
cmp dword [esi + 0xe38], 2
sete al
mov dword [esp + 4], 0x196
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x41703c]
mov dword [esp], eax
call edi
xor eax, eax
sub esp, 0xc
cmp dword [esi + 0xe38], 3
sete al
mov dword [esp + 4], 0x197
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [0x41703c]
mov dword [esp], eax
call edi
sub esp, 0xc
jmp 0x409d02
cmp ebx, 0x82
je 0x40a680
cmp ebx, 0x100
jne case.0x4099b7.0
cmp edi, 0x1b
jne 0x409d00
call dword [sym.imp.user32.dll_GetCapture]
cmp dword [ebp - 0x1050], eax
jne 0x409d00
mov eax, dword [0x417be0]
xor ebx, ebx
mov dword [esi + 0x15c], eax
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov ecx, dword [ebp - 0x80c]
mov edx, dword [ebp - 0x810]
mov eax, esi
sub esp, 8
call dbg.resize_tree
mov dword [0x417be0], 0xffffffff
call dword [sym.imp.user32.dll_ReleaseCapture]
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetCursor]
sub esp, 4
jmp 0x409d02
mov dword [esp + 8], 0xdbd
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_programs_winefile_winefile.c
mov dword [esp], str.child
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x409992
cmp edi, 1
je case.0x4099b7.0
mov eax, dword [ebp - 0x104c]
mov ecx, eax
movzx edx, ax
mov eax, esi
shr ecx, 0x10
call dbg.resize_tree
mov eax, dword [ebp - 0x104c]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DefMDIChildProcW]
sub esp, 0x10
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
test edi, edi
jne 0x409d00
mov ecx, dword [ebp - 0x104c]
xor edx, edx
mov eax, ebx
xor ebx, ebx
call dbg.CtxMenu_HandleMenuMsg
test eax, eax
setne bl
jmp 0x409d02
mov dword [esp + 8], 0x1f
lea edx, [esi + 4]
mov ecx, 3
xor ebx, ebx
mov dword [esp + 4], 0
mov dword [esp], 2
mov eax, dword [esi]
call dbg.create_tree_window
mov eax, dword [esi + 0x574]
lea edx, [esi + 0x98]
mov dword [esp], 5
mov ecx, 6
mov dword [esp + 8], eax
lea eax, [esi + 0x36c]
mov dword [esp + 4], eax
mov eax, dword [esi]
call dbg.create_tree_window
jmp 0x409d02
mov esi, dword [ebp - 0x104c]
mov eax, dword [ebp - 0x1050]
mov dword [esp + 8], edi
xor ebx, ebx
mov dword [esp + 4], 0x24
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_DefMDIChildProcW]
shl dword [esi + 0x20], 1
sub esp, 0x10
shl dword [esi + 0x24], 1
jmp 0x409d02
cmp word [ebp - 0x104c], 1
jne case.0x4099b7.0
lea edx, [ebp - 0x818]
mov dword [esp], edx
call dword [sym.imp.user32.dll_GetCursorPos]
mov eax, dword [ebp - 0x1050]
lea edx, [ebp - 0x818]
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_ScreenToClient]
mov eax, dword [esi + 0x15c]
mov edx, dword [ebp - 0x818]
sub esp, 8
lea ecx, [eax - 2]
cmp edx, ecx
jl case.0x4099b7.0
add eax, 2
cmp edx, eax
jg case.0x4099b7.0
mov dword [esp + 4], 0x7f84
mov ebx, 1
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetCursor]
sub esp, 4
jmp 0x409d02
mov eax, dword [ebp - 0x104c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 4]
cmp eax, 3
je 0x40ac50
cmp eax, 6
jne case.0x4099b7.44
mov dword [esp], 0xffffffff
mov edx, dword [ebp - 0x104c]
lea eax, [esi + 0x98]
mov ebx, 1
call dbg.draw_item
jmp 0x409d02
mov edi, dword [ebp - 0x1050]
lea eax, [ebp - 0x1018]
lea ebx, [ebp - 0x818]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetClientRect]
mov dword [ebp - 0x1050], edi
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.user32.dll_BeginPaint]
mov eax, dword [esi + 0x15c]
sub esp, 8
lea edx, [eax - 2]
add eax, 3
mov dword [esp], 1
mov dword [ebp - 0x1018], edx
mov dword [ebp - 0x1010], eax
call dword [sym.imp.gdi32.dll_GetStockObject]
mov edi, dword [sym.imp.gdi32.dll_SelectObject]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x818]
mov dword [esp], eax
call edi
mov esi, 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 dword [sym.imp.gdi32.dll_Rectangle]
mov eax, dword [ebp - 0x818]
sub esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
mov edi, dword [ebp - 0x1050]
sub esp, 8
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp], edi
call dword [sym.imp.user32.dll_EndPaint]
sub esp, 8
jmp 0x409d02
lea eax, [esi + 0x164]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
jne 0x40abc0
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x40a948
mov eax, dword [esi + 0x98]
mov dword [esp], eax
xor ebx, ebx
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
jmp 0x409d02
lea ebx, [esi + 4]
jmp 0x409b27
lea ebx, [esi + 4]
jmp 0x409a05
mov eax, dword [0x417888]
test eax, eax
je 0x409d00
mov dword [ebp - 0x818], 0
mov edx, dword [eax]
lea ecx, [ebp - 0x818]
mov esi, dword [ebp - 0x104c]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x120
mov dword [esp], eax
call dword [edx + 0x1c]
mov ebx, dword [ebp - 0x818]
sub esp, 0x14
jmp 0x409d02
call dword [sym.imp.user32.dll_GetCapture]
cmp dword [ebp - 0x1050], eax
jne 0x409d00
call dword [sym.imp.user32.dll_ReleaseCapture]
xor ebx, ebx
jmp 0x409d02
call dword [sym.imp.user32.dll_GetFocus]
shr edi, 0x10
cmp eax, dword [esi + 4]
je 0x40abd0
cmp edi, 1
je 0x40abf0
lea edx, [esi + 0x98]
cmp edi, 2
jne 0x409d00
mov ecx, dword [ebp - 0x1050]
mov eax, esi
xor ebx, ebx
call dbg.activate_entry
jmp 0x409d02
cmp eax, 0x65
je 0x40ad20
cmp eax, 0x6a
jne 0x409d00
lea eax, [ebp - 0x818]
lea edi, [ebp - 0x1018]
mov dword [ebp - 0x1060], eax
mov ecx, eax
mov edx, edi
mov eax, ebx
call dbg.prompt_target
test eax, eax
je 0x409af8
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 - 0x1060]
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 0x40a3c9
add eax, 2
cmp word [eax], 0
jne 0x40a3c0
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 - 0x1060]
je 0x40a3f9
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40a3f0
sub eax, dword [ebp - 0x1060]
xor edx, edx
sar eax, 1
mov word [ebp + eax*2 - 0x816], dx
lea eax, [ebp - 0x1038]
jmp 0x409ae1
lea edx, [eax - 0x194]
cmp edx, 0xa
ja case.0x40a42b.408
jmp dword [edx*4 + 0x40d19c]
cmp eax, 0x191
jne 0x409d00
cmp dword [ebx + 0x88], 0
je 0x409af8
mov dword [ebx + 0x88], 0
mov edx, 1
mov eax, ebx
call dbg.calc_widths
mov eax, ebx
call dbg.set_header
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.user32.dll_InvalidateRect]
mov eax, dword [0x41703c]
mov ebx, dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0x191
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], 0
mov eax, dword [0x41703c]
mov dword [esp + 4], 0x192
mov dword [esp], eax
call ebx
mov ebx, 1
sub esp, 0xc
jmp 0x409d02
mov eax, dword [esi + 0x15c]
mov ebx, 1
mov dword [0x417be0], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetCapture]
sub esp, 4
jmp 0x409d02
lea edi, [ebp - 0x818]
xor eax, eax
mov ecx, 0x83
mov edx, edi
mov dword [ebp - 0x1060], edi
lea ebx, [esi + 0x36c]
rep stosd dword es:[edi], eax
mov edi, edx
mov eax, ebx
sub edi, esi
nop
mov edx, eax
add eax, 2
movzx edx, word [edx]
mov word [edi + eax - 0x36e], dx
test dx, dx
jne 0x40a520
mov eax, dword [esi + 0x574]
mov dword [esp + 0xc], dbg.FilterDialogDlgProc
mov dword [esp + 4], 0x69
mov dword [ebp - 0x610], eax
mov eax, dword [ebp - 0x1060]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp + 8], eax
mov eax, dword [0x417020]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
cmp eax, 1
jne 0x409af8
nop
mov edx, ebx
add ebx, 2
movzx eax, word [edi + ebx - 0x36e]
mov word [edx], ax
test ax, ax
jne 0x40a580
mov eax, dword [ebp - 0x610]
mov dword [esi + 0x574], eax
mov eax, esi
call dbg.refresh_right_pane
jmp 0x409af8
cmp dword [esi + 0xe38], 3
je 0x409af8
mov dword [esi + 0xe38], 3
mov eax, esi
mov ebx, 1
call dbg.refresh_child
jmp 0x409d02
cmp dword [esi + 0xe38], 1
je 0x409af8
mov dword [esi + 0xe38], 1
mov eax, esi
mov ebx, 1
call dbg.refresh_child
jmp 0x409d02
mov eax, dword [esi + 0xe38]
test eax, eax
je 0x409af8
mov dword [esi + 0xe38], 0
mov eax, esi
mov ebx, 1
call dbg.refresh_child
jmp 0x409d02
cmp dword [esi + 0xe38], 2
je 0x409af8
mov dword [esi + 0xe38], 2
mov eax, esi
mov ebx, 1
call dbg.refresh_child
jmp 0x409d02
cmp eax, 0xe130
je 0x40acd0
cmp eax, 0xe138
jne 0x40a920
mov eax, dword [ebx + 0x90]
mov edx, dword [esi]
mov ebx, 1
call dbg.show_properties_dlg
jmp 0x409d02
lea eax, [esi + 0x578]
xor ebx, ebx
call dbg.free_entries
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]
mov eax, dword [ebp - 0x1050]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowLongW]
sub esp, 0xc
jmp 0x409d02
mov eax, dword [ebp - 0x104c]
mov dword [esp], edi
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
call dword [sym.imp.user32.dll_ScreenToClient]
mov edx, dword [ebp - 0x1014]
movzx eax, word [ebp - 0x1018]
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
shl edx, 0x10
mov dword [esp + 8], 0
or eax, edx
mov dword [ebp - 0x1054], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x201
mov dword [esp], edi
call ebx
mov edx, dword [ebp - 0x1014]
movzx eax, word [ebp - 0x1018]
sub esp, 0x10
shl edx, 0x10
mov dword [esp + 8], 0
or eax, edx
mov dword [esp + 4], 0x202
mov dword [esp + 0xc], eax
mov dword [esp], edi
call ebx
lea ebx, [esi + 4]
sub esp, 0x10
call dword [sym.imp.user32.dll_GetFocus]
mov edx, eax
mov eax, dword [esi + 4]
cmp eax, edx
je 0x40a7a0
mov eax, dword [esi + 0x98]
lea ebx, [esi + 0x98]
mov dword [esp + 0xc], 0
mov edi, dword [ebp - 0x1054]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov dword [esp], eax
call edi
sub esp, 0x10
cmp eax, 0xffffffff
je 0x409d00
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x199
mov eax, dword [ebx]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x1050]
sub esp, 0x10
call dbg.get_to_absolute_pidl
mov edi, eax
test eax, eax
je 0x409d00
lea eax, [ebp - 0x1040]
lea ebx, [ebp - 0x103c]
mov dword [esp + 4], 0x412598
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.shell32.dll_SHBindToParent]
sub esp, 0x10
test eax, eax
jns 0x40ac6f
mov eax, dword [0x417874]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 8
jmp 0x409d00
call dword [sym.imp.user32.dll_GetCapture]
cmp dword [ebp - 0x1050], eax
jne 0x409d00
lea eax, [ebp - 0x818]
movsx ebx, word [ebp - 0x104c]
mov dword [ebp - 0x1060], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1050]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
sub esp, 8
test ebx, ebx
js 0x409d00
mov edx, dword [ebp - 0x810]
cmp edx, ebx
jle 0x409d00
mov dword [esi + 0x15c], ebx
mov ecx, dword [ebp - 0x80c]
mov eax, esi
call dbg.resize_tree
lea eax, [ebx - 2]
add ebx, 3
mov edi, dword [ebp - 0x1050]
mov dword [ebp - 0x818], eax
mov eax, dword [ebp - 0x1060]
mov dword [ebp - 0x810], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_InvalidateRect]
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.user32.dll_UpdateWindow]
sub esp, 0xc
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp], edi
call ebx
mov eax, dword [esi + 0x98]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x409d00
cmp eax, 0x6a8
jne 0x40afdc
call dbg.refresh_drives
mov eax, esi
mov ebx, 1
call dbg.refresh_child
jmp 0x409d02
mov eax, dword [esi + 4]
jmp 0x40a24e
mov eax, dword [ebp - 0x104c]
mov edi, dword [eax + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18b
mov eax, dword [ebx]
mov dword [ebp - 0x1050], edi
lea edi, [ebx + edi*4]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x1054], eax
call eax
mov dword [edi + 8], 0
mov dword [ebp - 0x1058], eax
mov eax, dword [ebx]
sub esp, 0x10
mov dword [ebp - 0x1064], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDC]
mov esi, dword [sym.imp.gdi32.dll_SelectObject]
mov edi, eax
mov eax, dword [0x417054]
sub esp, 4
mov dword [ebp - 0x106c], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call esi
lea edx, [ebp - 0x818]
xor esi, esi
mov dword [ebp - 0x1068], eax
mov eax, dword [ebp - 0x1058]
sub esp, 8
mov dword [ebp - 0x1060], edx
test eax, eax
jle 0x40aabb
mov dword [ebp - 0x105c], edi
mov edi, dword [ebp - 0x1060]
lea esi, [esi]
mov dword [esp + 8], esi
add esi, 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x199
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [ebp - 0x1054]
call eax
mov edx, edi
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 [ebx]
mov dword [ebp - 0x7f0], 0
mov dword [ebp - 0x804], eax
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 0x7f8], 0
mov dword [ebp - 0x800], eax
mov eax, dword [ebp - 0x1050]
mov dword [ebp - 0x7f4], 0
mov dword [esp], eax
mov eax, ebx
mov dword [ebp - 0x7fc], 0
call dbg.draw_item
cmp dword [ebp - 0x1058], esi
jne 0x40aa00
mov edi, dword [ebp - 0x105c]
mov eax, dword [ebp - 0x1068]
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x106c]
call eax
sub esp, 8
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.user32.dll_ReleaseDC]
mov eax, dword [ebp - 0x1064]
sub esp, 8
mov edx, dword [eax + 8]
test edx, edx
je 0x40ab06
mov eax, dword [0x41705c]
lea eax, [eax + eax*2]
add edx, eax
mov eax, 0x10
cmp edx, eax
cmovl edx, eax
mov eax, dword [ebp - 0x1064]
mov dword [eax + 8], edx
add edx, dword [eax + 0x58]
mov eax, dword [ebp - 0x1050]
cmp eax, 8
jg 0x40ab34
lea eax, [ebx + eax*4 + 0xc]
lea ecx, [ebx + 0x30]
lea esi, [esi]
mov dword [eax + 0x50], edx
add edx, dword [eax]
add eax, 4
cmp ecx, eax
jne 0x40ab28
mov dword [esp + 8], edx
mov edi, dword [ebp - 0x1054]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x194
mov eax, dword [ebx]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x104c]
mov esi, dword [ebp - 0x1060]
mov dword [ebp - 0x818], 1
sub esp, 0x10
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + eax*4 + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [ebp - 0x814], edx
mov dword [esp + 4], 0x120c
mov eax, dword [ebx + 4]
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebx]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_InvalidateRect]
sub esp, 0xc
jmp 0x409d02
call dbg.set_space_status
jmp 0x40a23a
cmp edi, 1
je 0x40ae83
cmp edi, 2
jne 0x409d00
lea edx, [esi + 4]
jmp 0x40a31a
mov dword [esp + 0xc], 0
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov eax, dword [esi + 0x98]
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x199
mov eax, dword [esi + 0x98]
mov dword [esp], eax
call ebx
xor ebx, ebx
mov dword [esi + 0x128], eax
sub esp, 0x10
jmp 0x409d02
mov dword [esp], 0xffffffff
mov edx, dword [ebp - 0x104c]
lea eax, [esi + 4]
mov ebx, 1
call dbg.draw_item
jmp 0x409d02
mov eax, dword [ebp - 0x1040]
lea ecx, [ebp - 0x1038]
mov edx, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x1050]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x412398
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x28]
sub esp, 0x1c
test eax, eax
jns 0x40aeef
mov eax, dword [ebp - 0x1040]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x40a832
mov ecx, dword [ebp - 0x1050]
xor edx, edx
lea eax, [esi + 0x164]
call dbg.alloc_child_window
mov ebx, eax
call dbg.create_child_window
test eax, eax
jne 0x409af8
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
jmp 0x409af8
mov ecx, dword [ebp - 0x1050]
mov edx, ebx
mov eax, esi
mov ebx, 1
call dbg.activate_entry
jmp 0x409d02
lea eax, [ebp - 0x818]
lea edi, [ebp - 0x1018]
mov dword [ebp - 0x1060], eax
mov ecx, eax
mov edx, edi
mov eax, ebx
call dbg.prompt_target
test eax, eax
je 0x409af8
mov eax, dword [ebp - 0x1060]
mov edx, dword [ebp - 0x1050]
xor ebx, ebx
mov dword [ebp - 0x1028], 0
cmp word [ebp - 0x1018], 0
mov word [ebp - 0x101c], bx
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 0x40adc9
add eax, 2
cmp word [eax], 0
jne 0x40adc0
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 - 0x1060]
je 0x40a3f9
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40adf0
jmp 0x40a3f9
cmp eax, 0x192
jne case.0x40a42b.408
cmp dword [ebx + 0x88], 0x7f
je 0x409af8
mov dword [ebx + 0x88], 0x7f
mov edx, 1
mov eax, ebx
call dbg.calc_widths
mov eax, ebx
call dbg.set_header
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.user32.dll_InvalidateRect]
mov eax, dword [0x41703c]
mov ebx, dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0x191
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], 8
jmp 0x40a4b6
mov edi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov dword [esp], eax
call edi
sub esp, 0x10
mov ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x199
mov eax, dword [esi + 4]
mov dword [esp], eax
call edi
mov ecx, ebx
mov edx, eax
mov eax, dword [ebp - 0x1050]
sub esp, 0x10
mov dword [esp], eax
mov eax, esi
call dbg.set_curdir
jmp 0x409d00
mov eax, esi
call dbg.refresh_child
jmp 0x409af8
call dword [sym.imp.user32.dll_CreatePopupMenu]
mov edx, dword [ebp - 0x1038]
mov dword [ebp - 0x818], 0
lea ecx, [ebp - 0x818]
mov ebx, eax
mov dword [ebp - 0x1060], ecx
mov eax, dword [edx]
mov dword [esp], edx
mov dword [ebp - 0x1054], edx
mov dword [0x41788c], 0
mov dword [0x417888], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x412378
call dword [eax]
mov edx, dword [ebp - 0x1054]
sub esp, 0xc
test eax, eax
jne 0x40b022
mov eax, dword [ebp - 0x818]
mov dword [0x417888], eax
test eax, eax
je 0x40af71
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 ebx, ebx
je 0x40afc6
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], ebx
mov dword [esp], edx
call dword [eax + 0xc]
sub esp, 0x18
test eax, eax
jns 0x40b062
mov dword [0x41788c], 0
mov dword [0x417888], 0
mov eax, dword [ebp - 0x1038]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x40acb8
cmp eax, 0x8005
jne case.0x40a42b.408
mov edx, 1
mov eax, ebx
call dbg.calc_widths
mov eax, ebx
call dbg.set_header
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov ebx, 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_InvalidateRect]
sub esp, 0xc
jmp 0x409d02
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1060]
mov dword [esp], edx
mov dword [ebp - 0x1054], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x412388
call dword [eax]
mov edx, dword [ebp - 0x1054]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x818]
jne 0x40af5c
mov dword [0x41788c], eax
jmp 0x40af5c
mov ecx, dword [ebp - 0x1058]
mov eax, dword [ebp - 0x1050]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x104c]
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x102
mov dword [esp], ebx
call dword [sym.imp.user32.dll_TrackPopupMenu]
mov dword [0x41788c], 0
mov dword [0x417888], 0
sub esp, 0x1c
test eax, eax
je 0x40afc6
mov dword [ebp - 0x80c], eax
mov edx, dword [ebp - 0x1050]
mov eax, dword [ebp - 0x1038]
mov ecx, dword [ebp - 0x1060]
mov dword [ebp - 0x818], 0x24
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], edx
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x804], 0
mov dword [ebp - 0x800], 1
mov dword [ebp - 0x7fc], 0
mov dword [ebp - 0x7f8], 0
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x10]
mov ebx, eax
mov eax, dword [ebp - 0x1038]
push ecx
push ecx
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
test ebx, ebx
js 0x40acb8
mov eax, esi
call dbg.refresh_child
jmp 0x40acb8
mov eax, dword [ebp - 0x1060]
jmp 0x409ac9