Function at 0x40a350
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x42d4
call fcn.00417c40
mov eax, dword [0x429280]
xor eax, esp
mov dword [esp + 0x42d0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x14], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x28], edi
push 0x206
push eax
mov word [esp + 0x40d8], ax
lea eax, [esp + 0x40da]
push eax
call fcn.00416d70
add esp, 0xc
mov dword [esp + 0x20], 0x40aaf0
mov dword [esp + 0x24], 0x40ab10
mov dword [esp + 0x4c], 0x40aaf0
mov dword [esp + 0x50], 0x40ab10
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x5c], eax
cmp eax, 0xffffffff
jne 0x40a3f1
call esi
test eax, eax
jne 0x40a8af
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x40aa60
mov dword [esp + 0x58], 0x40aa80
mov dword [esp + 0xb0], 0x40d510
mov dword [esp + 0xb4], 0x40d570
mov dword [esp + 0xb8], 0x40d580
mov dword [esp + 0xbc], 0x40d5d0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], edi
call fcn.0040d5f0
lea ecx, [esp + 0x60]
call fcn.0040ae20
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0xb8]
call fcn.0040cea0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40a488
lea edx, [esp + 0x20]
lea ecx, [esp + 0x60]
call fcn.0040ae90
test ebx, ebx
jne 0x40a855
xor ecx, ecx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0xc], ecx
cmp dword [esp + 0x7c], ecx
jbe 0x40a845
mov eax, dword [esp + 0x70]
add eax, 0x19
mov dword [esp + 0x10], eax
jmp 0x40a4c0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], 0
mov esi, dword [ebx + ecx*4 + 4]
sub esi, dword [ebx + ecx*4]
cmp esi, dword [esp + 0x28]
jbe 0x40a510
push edi
call fcn.00410664
add esp, 4
mov dword [esp + 0x28], esi
add esi, esi
je 0x40a89f
push esi
call fcn.00410ee5
mov edi, eax
add esp, 4
test edi, edi
je 0x40a8a1
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + ecx*4 + 4]
mov eax, dword [ebx + ecx*4]
sub edx, eax
test edi, edi
je 0x40a53d
mov ecx, dword [esp + 0xa4]
lea esi, [ecx + eax*2]
test edx, edx
je 0x40a53d
mov ecx, edi
sub esi, edi
nop
mov ax, word [esi + ecx]
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x40a530
push ecx
mov edx, edi
mov dword [esp + 0x34], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0
call fcn.0040a290
mov esi, dword [esp + 0x34]
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x40a57c
call fcn.00411373
add eax, 0x20
push eax
push esi
call fcn.004111cf
add esp, 8
push esi
push 0x42c6c0
call dword [0x42c6c4]
add esp, 8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test ebx, ebx
jne 0x40a83f
mov esi, dword [esp + 0x10]
cmp byte [esi], bl
je 0x40a5ba
push 0x4269e8
call fcn.00411464
add esp, 4
jmp 0x40a605
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x28]
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x80]
call fcn.0040d240
mov ebx, eax
mov dword [esp + 0x4c], eax
add esp, 0x20
test ebx, ebx
jne 0x40a83f
xor ebx, ebx
cmp word [edi], bx
je 0x40a6b9
mov esi, edi
cmp word [esi], 0x2f
jne 0x40a6a6
push dword [esp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x40d4]
push 0x104
push eax
call fcn.00410e89
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x425db0
push 0x104
push eax
call fcn.00410c90
add esp, 0xc
lea eax, [esp + 0x40d0]
push edi
push 0x104
push eax
call fcn.00410c90
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x425db0
push 0x104
push eax
call fcn.00410c90
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a69e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x5c
mov word [esi], ax
inc ebx
cmp word [edi + ebx*2], 0
lea esi, [edi + ebx*2]
jne 0x40a612
mov esi, dword [esp + 0x10]
cmp byte [esi], 0
lea eax, [esp + 0x40d0]
push dword [esp + 0x14]
push 0x104
push eax
je 0x40a746
call fcn.00410e89
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x425db0
push 0x104
push eax
call fcn.00410c90
add esp, 0xc
lea eax, [esp + 0x40d0]
push edi
push 0x104
push eax
call fcn.00410c90
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x425db0
push 0x104
push eax
call fcn.00410c90
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a821
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
jmp 0x40a821
call fcn.00410e89
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x425db0
push 0x104
push eax
call fcn.00410c90
add esp, 0xc
lea eax, [esp + 0x40d0]
push edi
push 0x104
push eax
call fcn.00410c90
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x44], esi
cmp esi, 0xffffffff
jne 0x40a7b9
call ebx
test eax, eax
jne 0x40a8a8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea edx, [edx + ecx]
lea ecx, [esp + 0x48]
call fcn.0040a950
add esp, 4
test eax, eax
jne 0x40a8a8
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x38], eax
jne 0x40a8a8
cmp esi, 0xffffffff
je 0x40a80d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40a80d
call ebx
test eax, eax
jne 0x40a8a8
mov esi, dword [esp + 0x10]
cmp byte [esi + 4], 0
je 0x40a821
push dword [esi - 5]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0xc]
add esi, 0x20
inc ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x7c]
jb 0x40a4c0
mov ebx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x2c]
add esp, 8
lea edx, [esp + 0x20]
lea ecx, [esp + 0x60]
call fcn.0040ae90
push edi
call fcn.00410664
mov eax, dword [esp + 0x60]
add esp, 4
cmp eax, 0xffffffff
je 0x40a881
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40a881
call esi
test ebx, ebx
jne 0x40a8af
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x42d0]
xor ecx, esp
call fcn.0041050e
mov esp, ebp
pop ebp
ret 8
xor edi, edi
mov ebx, 2
jmp 0x40a83f
mov ebx, 0xb
jmp 0x40a83f
mov ecx, dword [esp + 0x42dc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041050e
mov esp, ebp
pop ebp
ret 8