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

Disassembly:
sub esp, 0x89c
push ebx
push ebp
push esi
push edi
call fcn.0045e0e0
mov ecx, dword [0x621808]
mov ebp, eax
mov eax, dword [0x628930]
mov byte [esp + 0x12], 0
mov dword [esp + 0x14], ecx
mov dl, byte [eax + 4]
test dl, dl
je 0x494bd4
mov al, byte [ebp + 0x440]
test al, al
jne 0x494bd4
test ecx, ecx
je 0x494bcf
mov edx, dword [ecx]
call dword [edx + 0x34]
mov byte [esp + 0x12], 1
push 1
push 0
mov ecx, 0x628700
call fcn.005cc7c0
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x40]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x40]
mov ecx, 0x628700
call fcn.005cd000
lea eax, [esp + 0x1a8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x11]
push 8
push ecx
lea ecx, [esp + 0x3c]
call fcn.00405da0
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x2c]
mov byte [edx], 0
call fcn.00405d90
mov ecx, dword [esp + 0x14]
mov edi, str.lastfile
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str.lastfile
push ecx
push str.lastfile
lea ecx, [esp + 0x34]
call fcn.004067a0
lea edx, [esp + 0x13]
lea ecx, [esp + 0x1c]
push edx
call fcn.00405d90
mov eax, dword [esp + 0x14]
mov edi, str.user
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str.user
push ecx
push str.user
lea ecx, [esp + 0x28]
call fcn.004067a0
lea ecx, [esp + 0x34]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.00409be0
lea edx, [esp + 0x44]
add esp, 0x10
cmp eax, edx
je 0x494ccd
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00406830
lea ecx, [esp + 0x40]
call fcn.00406010
lea ecx, [esp + 0x1c]
call fcn.00406010
lea ecx, [esp + 0x28]
call fcn.00406010
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xa1]
mov byte [esp + 0xa0], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x38]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x34]
sub ecx, edi
je 0x494d33
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa0]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov dword [esp + 0x54], 0x4c
call fcn.0045e0e0
mov ecx, dword [eax + 0x4c4]
lea edx, [esp + 0x4ac]
push edx
mov dword [esp + 0x5c], ecx
call fcn.00494490
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x4b0]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x38]
add esp, 4
sub ecx, eax
jne 0x494da0
lea edx, [esp + 0x2ac]
push edx
call fcn.00494520
add esp, 4
test al, al
je 0x494da0
lea eax, [esp + 0x2ac]
mov dword [esp + 0x80], eax
lea edx, [esp + 0x6ac]
lea ecx, [esp + 0xa0]
push edx
push 0x136
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0x104
call fcn.0045e0e0
mov ecx, eax
call fcn.00404ab0
mov ecx, dword [0x6285c8]
lea eax, [esp + 0x6ac]
push 1
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0x88026
mov dword [esp + 0x94], 0x610530
mov dword [esp + 0x9c], 0x4c1640
xor bl, bl
call fcn.005bf7a0
push 1
call fcn.00409a60
add esp, 4
lea ecx, [esp + 0x54]
mov byte [0x624aec], 1
push ecx
call sub.comdlg32.dll_GetSaveFileNameA
mov edi, eax
mov byte [0x624aec], bl
call fcn.005ef540
xor esi, esi
push esi
call fcn.00409a60
mov ecx, dword [0x6285c8]
add esp, 4
push esi
call fcn.005bf7a0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x40]
mov ecx, 0x628700
call fcn.005cd010
lea eax, [esp + 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp edi, esi
je 0x49514e
lea edi, [esp + 0xa0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 4
mov ebx, ecx
lea eax, [esp + ebx + 0xa0]
lea ecx, [esp + 0xa0]
push eax
push ecx
call fcn.005f1d2d
add esp, 8
dec edi
jne 0x494e90
push str..zoo
push eax
call fcn.005f1ca6
add esp, 8
test eax, eax
je 0x494ef5
cmp ebx, 0x100
ja 0x495112
mov edi, str..zoo
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [esp + 0xa0]
push 0x60ac24
push eax
call fcn.005f190a
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x495131
push ebp
push 1
push 4
push str.TZFBj
call fcn.005f1564
add esp, 0x10
cmp eax, 1
sete bl
and bl, 1
je 0x4950f5
push ebp
push 1
push 4
push 0x5fe188
call fcn.005f1564
add esp, 0x10
cmp eax, 1
sete cl
and bl, cl
je 0x4950f5
call fcn.0045e0e0
mov edx, dword [eax + 0x4cc]
push ebp
push 1
lea eax, [esp + 0x54]
push 4
push eax
mov dword [esp + 0x5c], edx
call fcn.005f1564
add esp, 0x10
cmp eax, 1
sete cl
and bl, cl
je 0x4950f5
call fcn.004bd2b0
push ebp
push 1
lea edx, [esp + 0x58]
push 4
push edx
mov dword [esp + 0x60], eax
call fcn.005f1564
add esp, 0x10
cmp eax, 1
sete al
and bl, al
je 0x4950f5
mov ecx, dword [0x621804]
call fcn.004cc640
mov ecx, dword [0x621804]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [0x621804]
and bl, al
call fcn.004cc660
test bl, bl
je 0x4950f5
lea eax, [esp + 0x13]
push esi
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.0046fe80
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0xa0]
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xa4]
lea edx, [esp + ecx + 0xa4]
lea ecx, [esp + 0x20]
push edx
push eax
call fcn.004067a0
lea ecx, [esp + 0x11]
push esi
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.0046fe80
mov edi, str.lastfile
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, str.lastfile
push ecx
push str.lastfile
lea ecx, [esp + 0x34]
call fcn.004067a0
lea eax, [esp + 0x1b]
push esi
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.0046fe80
mov ecx, dword [esp + 0x14]
mov edi, str.user
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str.user
push ecx
push str.user
lea ecx, [esp + 0x4c]
call fcn.004067a0
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0040a0b0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
add esp, 0xc
sub edx, eax
lea ecx, [esp + 0x48]
push edx
push eax
call fcn.0041d810
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.0041d810
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
sub edx, eax
lea ecx, [esp + 0x24]
push edx
push eax
call fcn.0041d810
push ebp
call fcn.005f1894
add esp, 4
test bl, bl
jne 0x49514e
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x495133
push esi
push esi
push esi
push 1
push str.ui_sharedui_exclaim_exclaim
push esi
push esi
push 0x2d7e
mov ecx, 0x628700
call fcn.005cea70
xor bl, bl
jmp 0x49514e
xor bl, bl
push esi
push esi
push esi
push 1
push str.ui_sharedui_exclaim_exclaim
push esi
push esi
push 0x2d7d
mov ecx, 0x628700
call fcn.005cea70
mov al, byte [esp + 0x12]
test al, al
je 0x49515f
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
sub ecx, eax
cmp eax, esi
je 0x4951a1
cmp ecx, 0x80
jbe 0x49518b
push eax
call fcn.005f0905
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x89c
ret
dec ecx
shr ecx, 3
mov edx, dword [ecx*4 + 0x61f1a0]
lea ecx, [ecx*4 + 0x61f1a0]
mov dword [eax], edx
mov dword [ecx], eax
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x89c
ret