Function at 0x404cd0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40869b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x478]
or ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x364]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x364]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x470], 1
rep movsb byte es:[edi], byte [esi]
mov edi, str..
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x224]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x368]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x404da2
lea ecx, [esp + 0x478]
mov byte [esp + 0x470], 0
call fcn.00407cca
lea ecx, [esp + 0x47c]
mov dword [esp + 0x470], ebp
call fcn.00407cca
xor al, al
jmp 0x40504b
mov edx, dword [esp + 0x47c]
xor ebx, ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x404de4
lea ecx, [esp + 0x478]
mov byte [esp + 0x470], bl
call fcn.00407cca
lea ecx, [esp + 0x47c]
mov dword [esp + 0x470], ebp
call fcn.00407cca
xor al, al
jmp 0x40504b
mov edi, dword [esp + 0x47c]
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1c], 0x5c
je 0x404e4b
mov edi, 0x40c1d0
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x250]
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x478]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x120]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x120], 0x5c
je 0x404eea
mov edi, 0x40c1d0
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x250]
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x224]
mov ecx, edx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x404fe5
mov esi, 0x40c1cc
lea eax, [esp + 0x250]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404f5a
cmp cl, bl
je 0x404f56
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404f5a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x404f36
xor eax, eax
jmp 0x404f5e
sbb eax, eax
sbb eax, ebp
cmp eax, ebx
je 0x405001
mov esi, 0x40c1c8
lea eax, [esp + 0x250]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404f96
cmp cl, bl
je 0x404f92
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404f96
add eax, 2
add esi, 2
cmp cl, bl
jne 0x404f72
xor eax, eax
jmp 0x404f9a
sbb eax, eax
sbb eax, ebp
cmp eax, ebx
je 0x405001
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x128]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x47c], 2
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x478], 1
call fcn.00404cd0
add esp, 8
cmp al, bl
je 0x404db7
jmp 0x405001
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x124]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404db7
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x224]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404de4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x478]
mov byte [esp + 0x470], bl
call fcn.00407cca
lea ecx, [esp + 0x47c]
mov dword [esp + 0x470], ebp
call fcn.00407cca
mov al, 1
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x464
ret