Function at 0x401770
Capabilities:
Create directory

Disassembly:
sub esp, 0x364
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x360], eax
push ebp
mov ebp, dword [esp + 0x36c]
push esi
push edi
mov esi, edx
test esi, esi
mov edi, ecx
mov dword [esp + 0x10], edi
je 0x4019b4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4017a3
sub eax, edx
je 0x4019b4
test ebp, ebp
je 0x40187a
lea edx, [esp + 0x158]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4017c7
mov ax, word [0x40fb48]
mov cl, byte [0x40fb4a]
lea edx, [esp + 0x18]
mov word [esp + 0x158], ax
push edx
lea eax, [esp + 0x15c]
push eax
mov byte [esp + 0x162], cl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4019b4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x260]
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401820
mov eax, esi
mov edx, esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401830
lea edi, [esp + 0x260]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401845
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebp
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401862
mov edi, dword [esp + 0x10]
sub eax, edx
lea esi, [esp + eax + 0x158]
jmp 0x401898
lea edx, [esp + 0x260]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401885
lea esi, [esp + 0x158]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x260]
mov byte [esp + eax + 0x158], cl
add eax, 1
test cl, cl
jne 0x4018a0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4018de
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x4019bd
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x260]
mov byte [esp + eax + 0x158], cl
add eax, 1
test cl, cl
jne 0x4018f0
push 0x5c
add esi, 1
push esi
call fcn.00403227
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x401980
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
push ecx
mov byte [esi + 1], 0x2a
mov byte [esi + 2], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4018e0
nop
xor eax, eax
mov cl, byte [esp + eax + 0x260]
mov byte [esp + eax + 0x158], cl
add eax, 1
test cl, cl
jne 0x401942
push 0x5c
push esi
call fcn.00403227
mov esi, eax
add esp, 8
test esi, esi
je 0x401980
push 0
lea edx, [esp + 0x15c]
push edx
mov byte [esi], 0
call ebp
test eax, eax
je 0x4019ab
add esi, 1
jne 0x401940
xor eax, eax
mov cl, byte [esp + eax + 0x260]
mov byte [esp + eax + 0x158], cl
add eax, 1
test cl, cl
jne 0x401982
push 0
lea eax, [esp + 0x15c]
push eax
call ebp
test eax, eax
jne 0x4018d4
mov dword [edi + 4], 0x101
jmp 0x4019bb
mov dword [edi + 4], 4
xor eax, eax
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004030dc
add esp, 0x364
ret 4