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

Disassembly:
push 0xffffffffffffffff
push 0x4a825c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x57c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x2710
call fcn.004985f0
mov ecx, eax
mov eax, dword [ebp + 0x28]
add esp, 4
mov dword [esp + 0x14], ecx
test eax, eax
je 0x4428ee
cmp byte [eax], 0
je 0x4428ee
push 0x2710
push ecx
push eax
call sub.comdlg32.dll_GetFileTitleA
jmp 0x4428f1
mov byte [ecx], 0
mov eax, dword [ebp + 0xc]
mov dword [0x4c0428], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [0x4c0430], ecx
mov dword [0x4c0434], edx
mov eax, dword [ebp + 0x10]
mov dword [0x4cb108], eax
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x44293c
cmp byte [eax], 0
je 0x44293c
lea ecx, [esp + 0x37c]
push ecx
push eax
call fcn.0043c7b0
lea edx, [esp + 0x384]
add esp, 8
mov dword [ebp + 0x24], edx
jmp 0x44294a
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x44294a
mov dword [ebp + 0x24], 0x4cb110
lea eax, [esp + 0x484]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
call ebx
mov ecx, 0x21
mov esi, str.Image_Files
lea edi, [esp + 0x174]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x1e
lea edi, [esp + 0x1fb]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x174]
push edx
call edi
lea esi, [esp + eax + 0x175]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4429e9
push str._.AIS
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
lea esi, [esi + eax + 1]
push str.Image_sequences__.AIS_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call edi
lea esi, [esi + eax + 1]
push str..AIS
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call edi
lea esi, [esi + eax + 1]
jmp 0x4429ed
mov byte [esi], 0
inc esi
push str.All_Files__._
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call edi
lea esi, [esi + eax + 1]
push 0x4be9f4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call edi
lea eax, [esi + eax + 1]
push 0xfffffffffffffffa
mov byte [eax], 0
mov eax, dword [ebp]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, eax
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov dword [0x4cb0e8], edx
mov ecx, dword [ebp]
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x174]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x20]
inc edx
mov dword [esp + 0x1c], 0x4c
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], 0x2710
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0x100c
mov dword [esp + 0x34], edx
call fcn.0043d3b0
test eax, eax
je 0x442aad
mov eax, dword [esp + 0x50]
mov dword [esp + 0x5c], ebp
or eax, 0x80060
mov dword [esp + 0x60], 0x442420
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], 0x1f4
mov eax, dword [ebp + 4]
test eax, eax
je 0x442abf
mov eax, dword [esp + 0x50]
or ah, 2
mov dword [esp + 0x50], eax
lea eax, [esp + 0x1c]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
mov esi, eax
test esi, esi
jne 0x442aea
call sub.comdlg32.dll_CommDlgExtendedError
cmp eax, 0x3002
jne 0x442aea
lea ecx, [esp + 0x1c]
mov byte [edi], 0
push ecx
call sub.comdlg32.dll_GetOpenFileNameA
mov esi, eax
lea edx, [esp + 0x484]
push edx
call ebx
test esi, esi
jne 0x442b10
push edi
call fcn.00498600
mov eax, dword [0x4c0428]
add esp, 4
mov dword [ebp + 0xc], eax
xor eax, eax
jmp 0x442ea9
mov ecx, dword [esp + 0x34]
xor ebx, ebx
dec ecx
push 0x7f02
push ebx
mov dword [ebp + 0x14], ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0xfa0
call fcn.004985f0
add esp, 4
mov dword [ebp + 0x30], eax
call fcn.0043d3b0
test eax, eax
mov eax, dword [ebp + 4]
je 0x442cfa
test eax, eax
je 0x442b60
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + edi + 1]
mov edi, dword [esp + 0x10]
xor esi, esi
cmp ebx, esi
je 0x442b84
cmp byte [ebx], 0
je 0x442b84
mov edx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x70]
push edx
push eax
call fcn.0043c6e0
add esp, 0xc
jmp 0x442b94
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x6c]
push esi
push eax
call fcn.00498c50
add esp, 8
test eax, eax
je 0x442bb2
lea ecx, [esp + 0x6c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], esi
je 0x442bdf
lea edx, [esp + 0x6c]
push 0x2e
push edx
call fcn.004989e0
add esp, 8
cmp eax, esi
je 0x442bdf
push str..ais
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x442bdf
mov edi, 1
cmp edi, esi
jne 0x442c32
push 0x5c
call fcn.004985f0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x594], esi
je 0x442c0a
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.00443dd0
mov esi, eax
mov ecx, esi
mov dword [esp + 0x594], 0xffffffff
call fcn.00444a10
test esi, esi
mov edi, eax
je 0x442c32
mov ecx, esi
call fcn.00443ff0
push esi
call fcn.00498600
add esp, 4
test edi, edi
je 0x442c75
lea edx, [esp + 0x18]
lea eax, [esp + 0x274]
push edx
push eax
lea ecx, [esp + 0x74]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edx, [esp + 0x274]
push edx
call fcn.0043c610
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x30]
add esp, 4
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0x2c]
inc eax
mov dword [ebp + 0x2c], eax
jmp 0x442c7c
mov dword [ebp + 0x34], 1
test ebx, ebx
je 0x442ca6
cmp byte [ebx], 0
je 0x442c90
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
test ebx, ebx
je 0x442ca6
cmp byte [ebx], 0
je 0x442ca6
cmp dword [ebp + 0x2c], 0x3e8
jl 0x442b64
mov eax, dword [ebp + 0x2c]
shl eax, 2
push eax
call fcn.004985f0
mov edx, dword [ebp + 0x2c]
add esp, 4
xor ecx, ecx
test edx, edx
jle 0x442cd2
mov esi, dword [ebp + 0x30]
sub edx, ecx
mov esi, dword [esi + ecx*4]
inc ecx
mov dword [eax + edx*4 - 4], esi
mov edx, dword [ebp + 0x2c]
cmp ecx, edx
jl 0x442cbe
mov edx, dword [ebp + 0x2c]
xor ecx, ecx
test edx, edx
jle 0x442cec
mov edx, dword [ebp + 0x30]
mov esi, dword [eax + ecx*4]
mov dword [edx + ecx*4], esi
mov edx, dword [ebp + 0x2c]
inc ecx
cmp ecx, edx
jl 0x442cdb
push eax
call fcn.00498600
add esp, 4
jmp 0x442e48
test eax, eax
je 0x442d21
push 0x4bfa70
push edi
call fcn.00499650
add esp, 8
mov dword [esp + 0x10], eax
push 0x4bfa70
push 0
call fcn.00499650
add esp, 8
mov ebx, eax
mov edi, dword [esp + 0x18]
test ebx, ebx
je 0x442d3e
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.0043c6e0
add esp, 0xc
jmp 0x442d4e
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x442d7d
lea ecx, [esp + 0x6c]
push 0x2e
push ecx
call fcn.004989e0
add esp, 8
test eax, eax
je 0x442d7d
push str..ais
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x442d7d
mov edi, 1
test edi, edi
jne 0x442ddc
push 0x5c
call fcn.004985f0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x594], 1
je 0x442dae
lea edx, [esp + 0x6c]
mov ecx, eax
push edx
call fcn.00443dd0
mov esi, eax
jmp 0x442db0
xor esi, esi
mov ecx, esi
mov dword [esp + 0x594], 0xffffffff
call fcn.00444a10
test esi, esi
mov edi, eax
je 0x442dd8
mov ecx, esi
call fcn.00443ff0
push esi
call fcn.00498600
add esp, 4
test edi, edi
je 0x442e1b
lea eax, [esp + 0x68]
lea ecx, [esp + 0x274]
push eax
push ecx
lea edx, [esp + 0x74]
push 0x105
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x274]
push eax
call fcn.0043c610
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x30]
add esp, 4
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0x2c]
inc eax
mov dword [ebp + 0x2c], eax
jmp 0x442e22
mov dword [ebp + 0x34], 1
test ebx, ebx
je 0x442e48
push 0x4bfa70
push 0
call fcn.00499650
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x442e48
cmp dword [ebp + 0x2c], 0x3e8
jl 0x442d25
mov eax, dword [esp + 0x14]
push eax
call fcn.00498600
mov eax, dword [ebp + 0x2c]
add esp, 4
test eax, eax
je 0x442e82
mov edx, dword [ebp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push 0x4cb110
mov eax, dword [edx]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x442e82
mov byte [eax], 0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [0x4c0428]
xor eax, eax
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
setne al
mov ecx, dword [esp + 0x58c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x588
ret