Function at 0x4018d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40719c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x43c], eax
test esi, esi
je 0x401bbc
test edi, edi
je 0x401bbc
push edi
call dword [sym.imp.MSVCR100.dll__mkdir]
push 0x103
lea ecx, [ebp - 0x30f]
push 0
push ecx
mov byte [ebp - 0x310], 0
call sub.MSVCR100.dll_memset
push 0x103
lea edx, [ebp - 0x20b]
push 0
push edx
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x310]
add esp, 0x28
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401972
lea eax, [ebp - 0x310]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401983
mov ecx, dword [str..]
mov dl, byte [0x404c38]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x310]
push ecx
call dword [sym.imp.MSVCR100.dll__findfirst64i32]
add esp, 8
mov dword [ebp - 0x444], eax
cmp eax, 0xffffffff
je 0x401ba5
lea edx, [ebp - 0x20c]
sub edx, esi
lea eax, [ebp - 0x108]
sub eax, edi
push ebx
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x450], eax
jmp 0x4019ea
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x44c]
mov eax, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019f0
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401a01
mov bx, word [0x404c30]
lea eax, [ebp - 0x414]
mov word [edi], bx
mov ecx, eax
jmp 0x401a20
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401a20
lea edi, [ebp - 0x20c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401a32
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x448]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edi
mov cl, byte [eax]
mov edx, dword [ebp - 0x450]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401a50
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401a67
lea eax, [ebp - 0x414]
mov word [edi], bx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401a80
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401a92
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp - 0x438], 0x10
rep movsb byte es:[edi], byte [esi]
jne 0x401ad6
mov eax, dword [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp - 0x440]
lea edx, [ebp - 0x20c]
push edx
call fcn.004016c0
jmp 0x401b5e
mov ecx, 0x404c2c
lea eax, [ebp - 0x414]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401b01
test dl, dl
je 0x401afd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401b01
add eax, 2
add ecx, 2
test dl, dl
jne 0x401ae1
xor eax, eax
jmp 0x401b06
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401b5e
mov ecx, 0x404c28
lea eax, [ebp - 0x414]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401b35
test dl, dl
je 0x401b31
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401b35
add eax, 2
add ecx, 2
test dl, dl
jne 0x401b15
xor eax, eax
jmp 0x401b3a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401b5e
mov eax, dword [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp - 0x440]
lea edx, [ebp - 0x20c]
push edx
call fcn.004018d0
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x438]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__findnext64i32]
add esp, 8
test eax, eax
je 0x4019e1
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.MSVCR100.dll__findclose]
add esp, 4
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402908
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402908
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop esi
call fcn.00402908
mov esp, ebp
pop ebp
ret 0xc