Function at 0x489410
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10ec]
mov ebx, dword [edi + 0x1530]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x489448
mov ecx, dword [edi + 0x10ec]
add ecx, 0x560
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x489658
mov ecx, dword [edi + 0x10f0]
mov esi, dword [edi + 0x1534]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x48947b
mov ecx, dword [edi + 0x10f0]
add ecx, 0x560
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
cmp esi, 0xffffffff
je 0x489658
push ebx
call fcn.00478890
mov ecx, eax
call fcn.00474e80
push esi
mov ecx, dword [eax]
add ecx, 0x6c
call fcn.00471f70
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
je 0x489e5d
push str.add_file
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489663
mov eax, dword [esi]
cmp dword [eax + 8], 0
je 0x489500
sub esp, 0x18
mov ecx, esp
push 0x58147c
call fcn.00402fa0
mov ecx, edi
call fcn.004a5380
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x58
lea eax, [ebp - 0x118]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov ecx, edi
call fcn.00423fd0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x58
mov dword [ebp - 0x10c], str._b_tg
mov dword [ebp - 0x100], 1
mov dword [ebp - 0xf8], 0x104
mov dword [ebp - 0xe4], 0x181800
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x48961f
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x58]
call fcn.00402fa0
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00487ac0
lea ecx, [ebp - 0x58]
call fcn.00403070
cmp dword [ebp - 8], 0
je 0x489617
lea eax, [ebp - 8]
push eax
push esi
call fcn.00478890
mov ecx, eax
call fcn.004722c0
test al, al
je 0x489650
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x90]
push eax
mov ecx, esi
call fcn.00474860
push eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0048a880
push eax
call fcn.00478830
mov ecx, eax
call fcn.0046bcf0
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
lea ecx, [ebp - 0x90]
call fcn.00403070
test bl, bl
je 0x489650
push 0
mov ecx, edi
call fcn.0049e290
lea ecx, [ebp - 8]
call fcn.00471910
lea eax, [ebp - 0x38]
push eax
call fcn.00450d40
add esp, 4
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x38]
call fcn.00403070
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 8]
call fcn.00471910
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.add_dir
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x4897cb
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x4894df
push 0x104
xorps xmm0, xmm0
lea eax, [ebp - 0x320]
push 0
push eax
movups xmmword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x68], xmm0
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, edi
call fcn.00423fd0
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x6c], 0x5814a4
mov dword [ebp - 0x68], 0x50
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x489658
lea ecx, [ebp - 0x320]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x58]
call fcn.00402fa0
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00487ac0
lea ecx, [ebp - 0x58]
call fcn.00403070
cmp dword [ebp - 8], 0
je 0x489792
lea eax, [ebp - 8]
push eax
push esi
call fcn.00478890
mov ecx, eax
call fcn.004722c0
test al, al
je 0x489650
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x90]
push eax
mov ecx, esi
call fcn.00474860
push eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0048a880
push eax
call fcn.00478830
mov ecx, eax
call fcn.0046bcf0
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
lea ecx, [ebp - 0x90]
call fcn.00403070
test bl, bl
je 0x489650
push 0
mov ecx, edi
call fcn.0049e290
lea eax, [ebp - 0x38]
push eax
call fcn.00450d40
add esp, 4
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x38]
call fcn.00403070
lea ecx, [ebp - 8]
call fcn.00471910
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.add_url
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x48986d
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x4894df
push 0x594564
lea ecx, [ebp - 0xa8]
call fcn.00402fa0
push 0x594564
lea ecx, [ebp - 0x38]
call fcn.00402fa0
push 0x594564
lea ecx, [ebp - 0x58]
call fcn.00402fa0
mov eax, dword [edi + 0x258]
lea edx, [ebp - 0xa8]
push edx
lea ecx, [edi + 0x258]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x58]
push edx
call dword [eax + 0x24]
lea ecx, [ebp - 0x58]
call fcn.00403070
lea ecx, [ebp - 0x38]
call fcn.00403070
lea ecx, [ebp - 0xa8]
call fcn.00403070
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.add_sys
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489ad9
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x4894df
push 0x26c
call fcn.00531cfc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x489906
mov dword [ebx + 8], 0x57f738
mov ecx, ebx
mov dword [ebx + method.nbase::SupportWeakCallback.virtual_0], vtable.nbase::SupportWeakCallback.0
push 0
mov dword [ebx + 0x264], 0
mov dword [ebx + 0x268], 0
call fcn.00437fa0
mov eax, dword [ebx + 8]
mov dword [ebx], vtable.CSysWnd.0
mov dword [ebx + method.CHideWnd.virtual_60], vtable.CSysWnd.1.0
mov eax, dword [eax + 4]
mov dword [eax + ebx + 8], vtable.CSysWnd.2.0
jmp 0x489908
xor ebx, ebx
mov dword [edi + 0x110c], ebx
lea ecx, [ebp - 0x20]
mov eax, dword [ebx]
xorps xmm0, xmm0
push ecx
mov ecx, ebx
movups xmmword [ebp - 0x30], xmm0
call dword [eax]
cmp dword [eax + 0x14], 8
jb 0x489927
mov eax, dword [eax]
mov esi, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
push 1
push 0x80
push 0x80000000
push eax
mov ecx, edi
call fcn.00423fd0
push eax
mov ecx, ebx
call dword [esi + 0xc]
lea ecx, [ebp - 0x20]
call fcn.00403070
mov ecx, ebx
call fcn.00424760
mov ecx, ebx
call fcn.00424670
mov ecx, ebx
cmp eax, 1
je 0x48997e
call fcn.004893e0
mov dword [edi + 0x110c], 0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0x258]
mov dword [ebp + 8], esi
call fcn.004893e0
mov dword [edi + 0x110c], 0
cmp esi, 0x22
ja 0x489e5d
shl esi, 3
lea ecx, [ebp - 0x20]
sub esi, dword [ebp + 8]
push dword [esi*4 + 0x5b3444]
call fcn.00402fa0
push 0x594564
lea ecx, [ebp - 0x90]
call fcn.00402fa0
push 0x594564
lea ecx, [ebp - 0x70]
call fcn.00402fa0
push dword [esi*4 + 0x5b3440]
lea ecx, [ebp - 0xc0]
call fcn.00402fa0
push dword [esi*4 + 0x5b3438]
lea ecx, [ebp - 0x38]
call fcn.00402fa0
push dword [esi*4 + 0x5b343c]
lea ecx, [ebp - 0x58]
call fcn.00402fa0
push dword [esi*4 + 0x5b3434]
lea ecx, [ebp - 0xa8]
call fcn.00402fa0
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [esi*4 + 0x5b3430]
lea eax, [ebp - 0x40]
push eax
call fcn.00494b80
lea ecx, [ebp - 0xa8]
call fcn.00403070
lea ecx, [ebp - 0x58]
call fcn.00403070
lea ecx, [ebp - 0x38]
call fcn.00403070
lea ecx, [ebp - 0xc0]
call fcn.00403070
lea ecx, [ebp - 0x70]
call fcn.00403070
lea ecx, [ebp - 0x90]
call fcn.00403070
lea ecx, [ebp - 0x20]
call fcn.00403070
cmp dword [ebp - 0x40], 0
je 0x489ac6
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
call fcn.00478890
mov ecx, eax
call fcn.004722c0
test al, al
jne 0x489abd
lea ecx, [ebp - 0x40]
call fcn.00471910
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
mov ecx, edi
call fcn.0049e290
lea ecx, [ebp - 0x40]
call fcn.00471910
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.small_icon
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489b2b
mov eax, dword [esi]
push esi
mov dword [eax + 0x60], 1
call fcn.00478890
mov ecx, eax
call fcn.00479180
push 0
mov ecx, edi
call fcn.0049e290
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.big_icon
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489b7d
mov eax, dword [esi]
push esi
mov dword [eax + 0x60], 0
call fcn.00478890
mov ecx, eax
call fcn.00479180
push 0
mov ecx, edi
call fcn.0049e290
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.large_icon
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489bcf
mov eax, dword [esi]
push esi
mov dword [eax + 0x60], 2
call fcn.00478890
mov ecx, eax
call fcn.00479180
push 0
mov ecx, edi
call fcn.0049e290
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.view_list
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489c21
mov eax, dword [esi]
push esi
mov dword [eax + 0x5c], 1
call fcn.00478890
mov ecx, eax
call fcn.00479180
push 0
mov ecx, edi
call fcn.0049e290
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.view_tile
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489c73
mov eax, dword [esi]
push esi
mov dword [eax + 0x5c], 0
call fcn.00478890
mov ecx, eax
call fcn.00479180
push 0
mov ecx, edi
call fcn.0049e290
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.sort_normal
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489cbe
push 0
push esi
call fcn.00478890
mov ecx, eax
call fcn.00478770
push 0
mov ecx, edi
call fcn.0049e290
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.sort_runcount
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489d2a
call fcn.00478990
cmp byte [eax + 0x35], 0
jne 0x489d07
sub esp, 0x18
mov ecx, esp
push 0x581508
call fcn.00402fa0
mov ecx, edi
call fcn.004a5380
push 1
push esi
call fcn.00478890
mov ecx, eax
call fcn.00478770
push 0
mov ecx, edi
call fcn.0049e290
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.sort_initial
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489d75
push 2
push esi
call fcn.00478890
mov ecx, eax
call fcn.00478770
push 0
mov ecx, edi
call fcn.0049e290
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.refresh_group_icon
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489dbe
push esi
call fcn.00478890
mov ecx, eax
call fcn.00477320
push 0
mov ecx, edi
call fcn.0049e290
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.clear_group
push eax
call fcn.0042a530
push eax
call fcn.00407240
add esp, 8
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00403070
test bl, bl
je 0x489e5d
mov eax, dword [esi]
cmp dword [eax + 8], 0
je 0x489e0f
sub esp, 0x18
mov ecx, esp
push 0x581584
call fcn.00402fa0
mov ecx, edi
call fcn.004a5380
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00478990
cmp byte [eax + 0x34], 0
je 0x489e47
push 0x31
push 0x58113c
push 0x581144
mov ecx, edi
mov byte [edi + 0x1134], 1
call fcn.00423fd0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [edi + 0x1134], 0
cmp eax, 1
jne 0x489e5d
push esi
call fcn.00478890
mov ecx, eax
call fcn.00474080
push 0
mov ecx, edi
call fcn.0049e290
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4