Function at 0x402330
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x154]
mov eax, dword [edi + 8]
test eax, eax
jle 0x40234f
mov eax, dword [edi + 4]
mov eax, dword [eax]
jmp 0x402351
xor eax, eax
push eax
call fcn.00471870
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 8]
add esp, 4
mov dword [esp + 0x10], 0
test eax, eax
jle 0x402374
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
jmp 0x402376
xor eax, eax
push 0
push eax
call fcn.004745d0
mov esi, eax
add esp, 8
test esi, esi
je 0x4023bc
push 0
push esi
call fcn.004743b0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4023ab
push ebx
call fcn.004746d0
push ebx
mov dword [esp + 0x18], eax
call fcn.00474360
add esp, 8
push esi
call fcn.00474360
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x4023c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x13c
ret
mov eax, dword [edi + 8]
lea edx, [eax*4]
push edx
call fcn.004bd49b
mov ebp, eax
mov eax, dword [edi + 8]
add esp, 4
xor esi, esi
test eax, eax
jle 0x40243e
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402403
cmp esi, eax
jge 0x4023ff
test esi, esi
jl 0x4023ff
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
jmp 0x40241e
xor eax, eax
jmp 0x40241e
cmp esi, eax
jge 0x402413
test esi, esi
jl 0x402413
mov ecx, dword [edi + 4]
mov eax, dword [ecx + esi*4]
jmp 0x402415
xor eax, eax
push eax
call fcn.00471a00
add esp, 4
mov ebx, dword [esp + 0x10]
push 0
push eax
push ebx
call fcn.00474660
add esp, 0xc
mov dword [ebp + esi*4], eax
test eax, eax
je 0x402442
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x4023e7
mov ebx, dword [esp + 0x10]
mov edi, dword [edi + 8]
cmp esi, edi
jge 0x402465
push ebp
call fcn.004bd4c4
mov edx, dword [ebx]
add esp, 4
push ebx
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x13c
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
mov eax, dword [ebx]
mov ebx, dword [esp + 0x154]
push 0
push 0x4deb40
push ebp
push edi
push ebx
push edx
call dword [eax + 0x28]
push ebp
mov edi, eax
call fcn.004bd4c4
add esp, 4
test edi, edi
jl 0x4025df
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x4025d5
mov eax, dword [esp + 0x14]
push 4
push 0x7fff
push 1
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
jl 0x4025ce
mov edx, dword [0x4f5e08]
push 0
push edx
push 0
push ebx
push 0
push 0
push 0
push 0
push 0x40000000
push 0x4f55a8
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push 0xfffffffffffffffc
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongA]
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffeb
push esi
mov dword [esp + 0x28], eax
call ebp
push 0x402150
push 0xfffffffffffffffc
push esi
call ebp
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x10]
push 0
push esi
push 0
push edx
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
xor ecx, ecx
cmp eax, ecx
je 0x4025b9
dec eax
lea edx, [esp + 0x44]
and eax, 0xffff
push edx
push 0x105
mov dword [esp + 0x28], 0x24
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edi, eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x1c]
push ecx
push 0xfffffffffffffffc
push esi
call ebp
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setge al
add esp, 0x13c
ret