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

Disassembly:
mov eax, 0x873c
call fcn.00413960
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x8738], eax
push ebp
mov ebp, dword [esp + 0x8748]
push esi
mov esi, dword [esp + 0x8748]
push 0x5c
push ebp
call fcn.004137d0
add esp, 8
test eax, eax
jne 0x40a128
mov eax, dword [0x42918c]
push 9
push 0x1d2
push ebp
push 0x36
push eax
call fcn.004062d0
add esp, 0x14
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x8738]
xor ecx, esp
call fcn.00411e16
add esp, 0x873c
ret
push edi
lea ecx, [esp + 0x410]
push ecx
lea edx, [esp + 0x518]
push edx
lea eax, [esp + 0x210]
push eax
lea ecx, [esp + 0x318]
push ecx
push ebp
call fcn.00413268
add esp, 0x14
cmp byte [esp + 0x410], 0
jne 0x40a206
lea edx, [esp + 0x410]
push edx
lea eax, [esp + 0x518]
push eax
lea ecx, [esp + 0x210]
push ecx
lea edx, [esp + 0x318]
push edx
push esi
call fcn.00413268
lea eax, [esp + 0x424]
push eax
lea ecx, [esp + 0x52c]
push ecx
lea edx, [esp + 0x30]
push str._s_s
push edx
call fcn.0041246c
mov eax, ebp
add esp, 0x24
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a1b0
sub eax, edx
cmp byte [eax + ebp - 1], 0x5c
je 0x40a1d4
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a1c3
mov ax, word [0x422adc]
mov word [edi], ax
lea eax, [esp + 0x14]
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a1e0
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a1f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
call esi
cmp eax, 0xffffffff
je 0x40a2e3
push 0x429c4b
push 0x429b4a
call fcn.0041390b
add esp, 8
test eax, eax
je 0x40a2e3
mov edx, dword [0x427f14]
push 0xc8
lea ecx, [esp + 0x61c]
push ecx
push 0x2d
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push ebp
lea eax, [esp + 0x61c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041246c
add esp, 0xc
cmp dword [0x428d8c], 0
jne 0x40a2bb
mov esi, 1
push 0xc
mov dword [0x427448], esi
push 0x42308c
cmp dword [0x4291f8], esi
jne 0x40a290
lea edx, [esp + 0x1c]
push edx
push 0
jmp 0x40a29c
mov ecx, dword [0x42918c]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00405f30
add esp, 0x10
mov dword [0x427448], 0
cmp eax, 6
je 0x40a2bb
cmp eax, esi
jne 0x40a364
push 0x429c4b
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x8738]
xor ecx, esp
call fcn.00411e16
add esp, 0x873c
ret
lea edx, [esp + 0x14]
mov eax, ebp
sub edx, ebp
jmp 0x40a2f0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a2f0
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.004137d0
mov byte [eax], 0
add esp, 8
lea eax, [esp + 0x14]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40a2c6
lea ecx, [esp + 0x410]
push ecx
lea edx, [esp + 0x518]
push edx
lea eax, [esp + 0x210]
push eax
lea ecx, [esp + 0x318]
push ecx
push ebp
call fcn.00413268
add esp, 0x14
cmp byte [esp + 0x30c], 0
jne 0x40a37e
mov edx, dword [0x42918c]
push 9
push 0x1d4
push ebp
push 0x38
push edx
call fcn.004062d0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x8738]
xor ecx, esp
call fcn.00411e16
add esp, 0x873c
ret
mov ecx, dword [0x427f14]
push 0xc8
lea eax, [esp + 0x61c]
push eax
push 0x24
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push ebp
lea edx, [esp + 0x61c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0041246c
xor edi, edi
add esp, 0xc
cmp dword [0x428d8c], edi
jne 0x40a364
mov eax, 1
push 0xc
mov dword [0x427448], eax
push 0x42308c
cmp dword [0x4291f8], eax
jne 0x40a3db
lea ecx, [esp + 0x1c]
push ecx
push edi
jmp 0x40a3e6
mov eax, dword [0x42918c]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00405f30
add esp, 0x10
mov dword [0x427448], edi
cmp eax, 7
je 0x40a364
push ebx
xor ecx, ecx
xor ebx, ebx
lea eax, [esp + 0x20c]
mov dword [esp + 0x10], ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a410
sub eax, esi
je 0x40a466
xor esi, esi
lea ecx, [ecx]
mov al, byte [esp + edi + 0x20c]
lea edx, [esi + ecx]
inc ecx
mov byte [esp + edx + 0x748], al
cmp al, 0x5c
jne 0x40a44a
lea eax, [esi + ecx]
inc ebx
add esi, 0x100
mov byte [esp + eax + 0x748], 0
xor ecx, ecx
lea eax, [esp + 0x20c]
inc edi
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a455
sub eax, ebp
cmp edi, eax
jb 0x40a420
mov dword [esp + 0x10], ebx
xor eax, eax
jmp 0x40a470
mov cl, byte [esp + eax + 0x310]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x40a470
xor ebp, ebp
test ebx, ebx
jbe 0x40a4e8
lea ebx, [esp + 0x748]
lea ecx, [ecx]
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a494
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a4a2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a4db
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40a506
inc ebp
add ebx, 0x100
cmp ebp, dword [esp + 0x10]
jb 0x40a490
mov eax, 1
mov ecx, dword [esp + 0x8748]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00411e16
add esp, 0x873c
ret
mov ecx, dword [0x42918c]
push 0xb
push 0x1d3
lea eax, [esp + 0x20]
push eax
push 0x37
push ecx
call fcn.004062d0
add esp, 0x14
xor eax, eax
jmp 0x40a4ed