Function at 0x401870
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 0x401ab4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4018a3
sub eax, edx
je 0x401ab4
test ebp, ebp
je 0x40197a
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 0x4018c7
mov ax, word [0x40fb50]
mov cl, byte [0x40fb52]
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 0x401ab4
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 0x401920
mov eax, esi
mov edx, esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401930
lea edi, [esp + 0x260]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401945
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 0x401962
mov edi, dword [esp + 0x10]
sub eax, edx
lea esi, [esp + eax + 0x158]
jmp 0x401998
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 0x401985
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 0x4019a0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4019de
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x401abd
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 0x4019f0
push 0x5c
add esi, 1
push esi
call fcn.0040333a
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x401a80
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 0x4019e0
nop
xor eax, eax
mov cl, byte [esp + eax + 0x260]
mov byte [esp + eax + 0x158], cl
add eax, 1
test cl, cl
jne 0x401a42
push 0x5c
push esi
call fcn.0040333a
mov esi, eax
add esp, 8
test esi, esi
je 0x401a80
push 0
lea edx, [esp + 0x15c]
push edx
mov byte [esi], 0
call ebp
test eax, eax
je 0x401aab
add esi, 1
jne 0x401a40
xor eax, eax
mov cl, byte [esp + eax + 0x260]
mov byte [esp + eax + 0x158], cl
add eax, 1
test cl, cl
jne 0x401a82
push 0
lea eax, [esp + 0x15c]
push eax
call ebp
test eax, eax
jne 0x4019d4
mov dword [edi + 4], 0x101
jmp 0x401abb
mov dword [edi + 4], 4
xor eax, eax
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004031ea
add esp, 0x364
ret 4