Function at 0x494d30
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x430
push ebx
push ebp
mov ebp, dword [esp + 0x43c]
push esi
test ebp, ebp
push edi
je 0x4950c8
mov esi, dword [esp + 0x448]
test esi, esi
je 0x4950c8
push 0x5c
push ebp
call fcn.0044d930
mov edx, eax
add esp, 8
test edx, edx
je 0x4950c8
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
inc edx
push edx
push esi
stosb byte es:[edi], al
push 0x646284
lea eax, [esp + 0x3c]
push 0x207
push eax
call fcn.0044dbc8
lea ecx, [esp + 0x44]
add esp, 0x14
xor ebx, ebx
mov esi, 0x57
test ecx, ecx
jne 0x494df1
push esi
mov dword [0x68b8e0], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
xor ecx, ecx
test eax, eax
je 0x494e60
mov al, byte [esp + 0x44c]
test al, 1
je 0x494e39
push 0xb7
mov dword [0x68b8e0], 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x2c], 0
call fcn.0049e490
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
add esp, 0x1c
test ecx, ecx
je 0x494e23
mov ebx, eax
cmp eax, 0xffffffff
je 0x494db8
test al, 0x10
je 0x494db8
mov eax, 1
test al, bl
je 0x494dba
mov ecx, eax
jmp 0x494dc4
test ecx, ecx
je 0x494e60
test al, 2
je 0x494e60
push 5
mov dword [0x68b8e0], 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret
lea edx, [esp + 0x30]
test edx, edx
je 0x4950cd
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x494e9f
test al, 0x10
jne 0x495050
lea ecx, [esp + 0x30]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x30]
push 0
push eax
call ebx
test eax, eax
jne 0x495050
mov ecx, 0x81
lea edi, [esp + 0x239]
mov byte [esp + 0x238], al
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x34]
lea edx, [esp + 0x23c]
push ecx
push edx
mov ebp, 1
stosb byte es:[edi], al
call fcn.0044d830
lea eax, [esp + 0x244]
push 0x5c
push eax
call fcn.0044d970
mov esi, eax
lea edi, [esp + 0x24c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x494f50
cmp byte [esp + 0x238], 0x5c
jne 0x494f50
cmp byte [esp + 0x239], 0x5c
jne 0x494f50
lea ecx, [esp + 0x23a]
push 0x5c
push ecx
call fcn.0044d970
add esp, 8
test eax, eax
je 0x494fde
inc eax
push 0x5c
push eax
call fcn.0044d970
add esp, 8
mov esi, eax
test esi, esi
je 0x494fde
lea edx, [esp + 0x238]
mov byte [esi], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x494fa0
test bl, 1
je 0x494f88
and al, 0xfe
lea ecx, [esp + 0x238]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x495022
cmp ebx, 0xffffffff
je 0x494fa9
test edi, edi
jne 0x494fbb
lea eax, [esp + 0x238]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x495022
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.0044d970
mov esi, eax
add esp, 8
test esi, esi
jne 0x494f58
test ebp, ebp
je 0x495022
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x495013
test al, 0x10
jne 0x49501e
test al, 1
je 0x495004
and al, 0xfe
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x495022
lea edx, [esp + 0x30]
push 0
push edx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x495049
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x68b8e0], eax
je 0x4950da
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret
mov ebp, dword [esp + 0x444]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44c]
mov edi, ebp
mov dword [esp + 0x18], eax
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x34]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push 0x4950f0
dec ecx
push 0x10
push ebp
mov dword [esp + 0x24], 2
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ecx
call fcn.00492e80
mov eax, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x430
ret
mov esi, 0x57
push esi
mov dword [0x68b8e0], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret