Function at 0x4183e0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x5d0
push ebx
push ebp
mov ebp, dword [esp + 0x5dc]
push esi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, ecx
lea ecx, [esp + 0x38]
push edi
mov edx, dword [esi + 0xc]
push ecx
push 0
lea eax, [esp + 0x1d8]
push 0x110c
push edx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x104
call ebx
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x5e8]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], eax
push ecx
push 0
push 0x110d
push edx
call ebx
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
push ebp
push eax
call fcn.00404860
mov edi, eax
add esp, 8
test edi, edi
jne 0x41847f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5d0
ret 8
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0xc]
push 0
push 0
push 0xb
push edx
call ebx
push 0x4be838
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x5e8]
lea eax, [esp + 0x3d8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x3dc]
mov edx, dword [eax]
push 0x20
push ecx
mov ecx, dword [edi + 8]
push ecx
mov ecx, dword [esi + 0xc]
push ecx
push eax
call dword [edx + 0x30]
test eax, eax
mov dword [esp + 0x2c], eax
jl 0x4187bd
mov edx, dword [esi + 0xc]
push ebp
push 3
push 0x110a
push edx
call ebx
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.00404860
mov ecx, dword [edi + 8]
add esp, 8
mov ebx, eax
push ecx
call fcn.00431110
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x38]
add esp, 4
mov dword [edi + 8], edx
push eax
call fcn.00431110
mov ecx, dword [edi + 8]
mov edx, dword [ebx + 4]
add esp, 4
push ecx
push edx
call fcn.00431070
add esp, 8
mov dword [edi + 4], eax
mov eax, dword [esi + 0xc]
push 0
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebp
mov ecx, esi
mov ebx, eax
call fcn.00418280
cmp ebp, ebx
jne 0x418565
mov ecx, esi
call fcn.004178f0
push ebp
mov ecx, esi
call fcn.004178c0
mov edx, dword [edi + 4]
lea ecx, [esp + 0xc8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [esp + 0xc8]
push eax
call fcn.0043d350
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4187f2
lea ecx, [esp + 0xc8]
cmp ebx, ecx
jbe 0x4187f2
lea edx, [esp + 0xc8]
lea eax, [esi + 0xa4]
push edx
push eax
mov byte [ebx - 1], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x38], eax
je 0x41865e
mov ebp, dword [esi + 0x2b8]
lea ecx, [esp + 0x1d0]
push 1
dec ebp
push ecx
lea ecx, [esp + 0x6c]
mov dword [esi + 0x2b8], ebp
call fcn.0041d2e0
lea edx, [esp + 0x64]
test edx, edx
je 0x41862a
mov eax, dword [esi + 0x484]
xor edi, edi
test eax, eax
jle 0x41862a
mov ecx, dword [esi + 0x480]
lea eax, [esp + 0x64]
push eax
mov ecx, dword [ecx + edi*4]
call fcn.0041d700
test eax, eax
jne 0x41883e
mov eax, dword [esi + 0x484]
inc edi
cmp edi, eax
jl 0x418604
xor edi, edi
test edi, edi
je 0x418650
push ebx
mov ecx, edi
call fcn.0041d8c0
mov edi, dword [edi + 0x50]
test edi, edi
jl 0x418650
mov eax, dword [esi + 8]
push edi
push edi
push 0x1015
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x64]
call fcn.0041d390
jmp 0x4187f2
lea ecx, [esp + 0xc8]
push 0x4aa6f0
lea edx, [esp + 0x2d8]
push ecx
push edx
call fcn.0043c6e0
add esp, 0xc
mov ebx, 0x4aa744
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0x1388
push 0x4e20
call fcn.004985f0
mov ecx, dword [esp + 0x1c]
mov edi, eax
xor eax, eax
mov dword [esp + 0x18], edi
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [0x4caa58]
lea ecx, [esp + 0x2d4]
push eax
xor edi, edi
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], 0x4aa740
mov dword [esp + 0x28], 1
call fcn.0041cb40
push 0x14
call fcn.004985f0
add esp, 4
cmp eax, edi
je 0x418702
lea edx, [esp + 0x1d0]
push 0x4caf4c
push edx
mov ecx, eax
call fcn.0041c6a0
mov ebp, eax
jmp 0x418704
xor ebp, ebp
cmp ebp, edi
je 0x418732
mov eax, dword [esp + 0x18]
mov ecx, ebp
push eax
call fcn.0041c950
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x418732
push ebp
mov ecx, edi
call fcn.0041c780
test eax, eax
jne 0x418732
mov edi, dword [edi + 4]
test edi, edi
jne 0x41871f
test ebp, ebp
je 0x41873f
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
test edi, edi
je 0x418771
mov eax, dword [esp + 0x5e8]
mov ecx, edi
push eax
call fcn.0041c920
mov ecx, dword [0x4caa58]
mov edx, dword [0x4caa54]
push ecx
lea eax, [esp + 0x2d8]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0041cca0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
test eax, eax
je 0x4187ae
mov eax, dword [esp + 0x18]
xor ebp, ebp
test eax, eax
jle 0x4187ae
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + ebp*4]
test ecx, ecx
je 0x4187a5
mov edi, dword [ecx + 4]
test ecx, ecx
je 0x41879f
mov edx, dword [ecx]
push 1
call dword [edx]
test edi, edi
mov ecx, edi
jne 0x418792
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x418787
mov eax, dword [esp + 0x14]
push eax
call fcn.00498600
add esp, 4
jmp 0x4187f2
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x3c]
push edx
push 0
lea ecx, [esp + 0x1d8]
push 0x110d
push eax
mov dword [esp + 0x5c], ecx
call ebx
mov ecx, dword [esi + 4]
push 0
push 0x4e88
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4187f8
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esi + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 0xc]
push 0
push 1
push 0xb
push eax
call ebx
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setge al
add esp, 0x5d0
ret 8
mov edx, dword [esi + 0x480]
mov edi, dword [edx + edi*4]
jmp 0x41862c