Function at 0x47d260
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d3fbc
push eax
mov dword fs:[0], esp
sub esp, 0x47c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x34]
xor ebx, ebx
cmp eax, edi
jle 0x47d2a3
mov eax, dword [esi + 0x38]
mov eax, dword [eax + ebx*4]
push eax
call fcn.004bd4c4
mov eax, dword [esi + 0x34]
add esp, 4
inc ebx
cmp ebx, eax
jl 0x47d28c
mov eax, dword [esi + 0x38]
push eax
call fcn.004bd4c4
push 0x186a0
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
call fcn.004bd49b
mov ecx, dword [esi + 0x30]
add esp, 8
cmp ecx, edi
mov dword [esp + 0x10], eax
je 0x47d2dd
cmp byte [ecx], 0
je 0x47d2dd
push 0x104
push eax
push ecx
call sub.comdlg32.dll_GetFileTitleA
jmp 0x47d2e0
mov byte [eax], 0
mov ecx, dword [esi + 0x10]
mov dword [0x4f0c98], ecx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov dword [0x4f0ca0], edx
mov dword [0x4f0ca4], eax
mov ecx, dword [esi + 0x14]
mov dword [0x4f6148], ecx
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x47d32c
cmp byte [eax], 0
je 0x47d32c
lea edx, [esp + 0x27c]
push edx
push eax
call fcn.00471240
lea eax, [esp + 0x284]
add esp, 8
mov dword [esi + 0x2c], eax
jmp 0x47d338
cmp dword [esi + 0x2c], edi
jne 0x47d338
mov dword [esi + 0x2c], 0x4f614c
mov edx, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esi + 0x40]
push 0x28
push ecx
push 0x453
push edx
call ebx
lea eax, [esp + 0x384]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x2710
call fcn.004bd49b
mov edx, dword [esi]
add esp, 4
mov ebp, eax
mov ecx, 0x4f55f8
push edi
push ebp
push edx
call fcn.0049a800
mov edi, eax
mov eax, dword [esi + 0xc]
add edi, ebp
test eax, eax
je 0x47d3ac
dec edi
push str._.AIS
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
mov eax, dword [esi]
push 1
push edi
push eax
mov ecx, 0x4f55f8
call fcn.0049a800
add edi, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47d3f4
mov ecx, dword [esi]
push 0x50
push edi
push 0x451
push ecx
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
push 0x4f0ca8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
mov edx, dword [esi]
push 0x50
push edi
push 0x452
push edx
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
lea edi, [edi + eax + 1]
push 0x4ed910
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call ebx
lea edi, [edi + eax + 1]
mov ebx, dword [esp + 0x10]
mov ecx, 0x13
mov byte [edi], 0
mov eax, dword [esi]
mov dword [0x4f6128], eax
mov edx, dword [esi]
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x28]
inc edx
mov dword [esp + 0x1c], 0x4c
mov dword [esp + 0x28], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], 0x186a0
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0x100c
mov dword [esp + 0x34], edx
call fcn.00471a60
test eax, eax
je 0x47d4a9
mov eax, dword [esp + 0x50]
mov dword [esp + 0x5c], esi
or eax, 0x80060
mov dword [esp + 0x60], 0x47cdf0
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], 0x1f4
mov eax, dword [esi + 8]
test eax, eax
je 0x47d4bb
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 edi, eax
test edi, edi
jne 0x47d4e6
call sub.comdlg32.dll_CommDlgExtendedError
cmp eax, 0x3002
jne 0x47d4e6
lea ecx, [esp + 0x1c]
mov byte [ebx], 0
push ecx
call sub.comdlg32.dll_GetOpenFileNameA
mov edi, eax
lea edx, [esp + 0x384]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call fcn.004bd4c4
add esp, 4
test edi, edi
jne 0x47d519
push ebx
call fcn.004bd4c4
mov eax, dword [0x4f0c98]
add esp, 4
mov dword [esi + 0x10], eax
xor eax, eax
jmp 0x47d8b4
mov ecx, dword [esp + 0x34]
xor ebp, ebp
dec ecx
push 0x7f02
push ebp
mov dword [esi + 0x18], ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x9c40
call fcn.004bd49b
add esp, 4
mov dword [esi + 0x38], eax
call fcn.00471a60
test eax, eax
mov eax, dword [esi + 8]
je 0x47d706
test eax, eax
je 0x47d569
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebx + 1]
mov ebx, dword [esp + 0x14]
xor edi, edi
cmp ebp, edi
je 0x47d58e
cmp byte [ebp], 0
je 0x47d58e
mov edx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x70]
push edx
push eax
call fcn.00471100
add esp, 0xc
jmp 0x47d59e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47d5ba
lea ecx, [esp + 0x6c]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi + 0xc], edi
je 0x47d5e9
lea edx, [esp + 0x6c]
push 0x2e
push edx
call fcn.004a7c73
add esp, 8
cmp eax, edi
je 0x47d5e9
push str..ais
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x47d5e9
mov ebx, 1
jmp 0x47d640
cmp ebx, edi
jne 0x47d640
push pe_nt_image_headers32
call fcn.004bd49b
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov dword [esp + 0x494], edi
je 0x47d614
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.0049c790
mov edi, eax
mov ecx, edi
mov dword [esp + 0x494], 0xffffffff
call fcn.0049dcc0
test edi, edi
mov ebx, eax
je 0x47d63c
mov ecx, edi
call fcn.0049cb20
push edi
call fcn.004bd4c4
add esp, 4
test ebx, ebx
je 0x47d67f
lea edx, [esp + 0x18]
lea eax, [esp + 0x174]
push edx
push eax
lea ecx, [esp + 0x74]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edx, [esp + 0x174]
push edx
call fcn.00470f80
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
add esp, 4
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x34]
inc eax
mov dword [esi + 0x34], eax
jmp 0x47d686
mov dword [esi + 0x3c], 1
test ebp, ebp
je 0x47d6b2
cmp byte [ebp], 0
je 0x47d69b
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
test ebp, ebp
je 0x47d6b2
cmp byte [ebp], 0
je 0x47d6b2
cmp dword [esi + 0x34], 0x2710
jl 0x47d56d
mov eax, dword [esi + 0x34]
shl eax, 2
push eax
call fcn.004bd49b
mov edx, dword [esi + 0x34]
add esp, 4
xor ecx, ecx
test edx, edx
jle 0x47d6de
mov edi, dword [esi + 0x38]
sub edx, ecx
mov edi, dword [edi + ecx*4]
inc ecx
mov dword [eax + edx*4 - 4], edi
mov edx, dword [esi + 0x34]
cmp ecx, edx
jl 0x47d6ca
mov edx, dword [esi + 0x34]
xor ecx, ecx
test edx, edx
jle 0x47d6f8
mov edx, dword [esi + 0x38]
mov edi, dword [eax + ecx*4]
mov dword [edx + ecx*4], edi
mov edx, dword [esi + 0x34]
inc ecx
cmp ecx, edx
jl 0x47d6e7
push eax
call fcn.004bd4c4
add esp, 4
jmp 0x47d853
test eax, eax
je 0x47d72a
push 0x4edc18
push ebx
call fcn.004a88ee
push 0x4edc18
push 0
mov dword [esp + 0x24], eax
call fcn.004a88ee
add esp, 0x10
mov ebp, eax
mov ebx, dword [esp + 0x18]
test ebp, ebp
je 0x47d747
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.00471100
add esp, 0xc
jmp 0x47d757
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47d788
lea ecx, [esp + 0x6c]
push 0x2e
push ecx
call fcn.004a7c73
add esp, 8
test eax, eax
je 0x47d788
push str..ais
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x47d788
mov ebx, 1
jmp 0x47d7e7
test ebx, ebx
jne 0x47d7e7
push pe_nt_image_headers32
call fcn.004bd49b
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x494], 1
je 0x47d7b9
lea edx, [esp + 0x6c]
mov ecx, eax
push edx
call fcn.0049c790
mov edi, eax
jmp 0x47d7bb
xor edi, edi
mov ecx, edi
mov dword [esp + 0x494], 0xffffffff
call fcn.0049dcc0
test edi, edi
mov ebx, eax
je 0x47d7e3
mov ecx, edi
call fcn.0049cb20
push edi
call fcn.004bd4c4
add esp, 4
test ebx, ebx
je 0x47d826
lea eax, [esp + 0x68]
lea ecx, [esp + 0x174]
push eax
push ecx
lea edx, [esp + 0x74]
push 0x105
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x174]
push eax
call fcn.00470f80
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
add esp, 4
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x34]
inc eax
mov dword [esi + 0x34], eax
jmp 0x47d82d
mov dword [esi + 0x3c], 1
test ebp, ebp
je 0x47d853
push 0x4edc18
push 0
call fcn.004a88ee
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x47d853
cmp dword [esi + 0x34], 0x2710
jl 0x47d72e
mov eax, dword [esp + 0x10]
push eax
call fcn.004bd4c4
mov eax, dword [esi + 0x34]
add esp, 4
test eax, eax
je 0x47d88d
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0x10]
push ecx
push 0x4f614c
mov eax, dword [edx]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47d88d
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 [0x4f0c98]
xor eax, eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x34]
test ecx, ecx
setne al
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x488
ret