Function at 0x407970
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40cbd9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x378]
lea edi, [esp + 0x128]
xor ebp, ebp
mov eax, dword [edx - 8]
mov dword [esp + 0x370], ebp
mov dword [esp + 0x18], ebp
lea ecx, [eax + 1]
xor eax, eax
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
lea esi, [esp + 0x128]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov edx, esi
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]
mov ecx, 0x3f
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x128]
mov byte [esp + 0x370], 1
test al, al
je 0x407c46
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov bl, byte [esp + edi + 0x128]
lea ecx, [esp + 0x10]
movsx eax, bl
push eax
push 0x410140
push ecx
mov byte [esp + 0x37c], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, 0x41087c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x407a7f
test cl, cl
je 0x407a7b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x407a7f
add eax, 2
add esi, 2
test cl, cl
jne 0x407a5b
xor eax, eax
jmp 0x407a84
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x407a91
inc eax
mov dword [esp + 0x18], eax
cmp eax, 1
jle 0x407b32
cmp eax, dword [esp + 0x14]
jle 0x407b32
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + ebp + 0x2c], 0
call sub.MFC42.DLL_CString::CString_1
push 0x4105c8
lea ecx, [esp + 0x20]
mov byte [esp + 0x374], 3
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x228]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x407af2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x407b21
lea eax, [esp + 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x12c]
lea ecx, [edx + eax*4 + 0x140]
inc eax
mov dword [edx + 0x12c], eax
lea edx, [esp + 0x28]
push edx
call fcn.0040bb40
lea ecx, [esp + 0x1c]
mov byte [esp + 0x370], 2
call fcn.0040bb3a
mov eax, dword [esp + 0x10]
mov esi, 0x41087c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x407b5f
test cl, cl
je 0x407b5b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x407b5f
add eax, 2
add esi, 2
test cl, cl
jne 0x407b3b
xor eax, eax
jmp 0x407b64
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407b8c
movsx eax, byte [esp + edi + 0x129]
mov byte [esp + ebp + 0x28], 0x5c
inc ebp
inc edi
push eax
lea ecx, [esp + 0x14]
push 0x410140
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x407b92
mov byte [esp + ebp + 0x28], bl
inc ebp
inc edi
mov eax, dword [esp + 0x10]
mov esi, 0x41087c
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x407bc3
test cl, cl
je 0x407bbf
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x407bc3
add eax, 2
add esi, 2
test cl, cl
jne 0x407b9b
xor eax, eax
jmp 0x407bc8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407c22
movsx eax, byte [esp + edi + 0x129]
inc edi
push eax
lea ecx, [esp + 0x14]
push 0x410140
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, 0x41087c
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x407c19
test cl, cl
je 0x407c15
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x407c19
add eax, 2
add esi, 2
test cl, cl
jne 0x407bf1
xor eax, eax
jmp 0x407c1e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407bcc
lea ecx, [esp + 0x10]
mov byte [esp + 0x370], 1
call fcn.0040bb3a
mov al, byte [esp + edi + 0x128]
test al, al
jne 0x407a24
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
mov byte [esp + ebp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebx + 0x12c]
lea edx, [esp + 0x28]
push edx
lea ecx, [ebx + eax*4 + 0x140]
inc eax
mov dword [ebx + 0x12c], eax
call fcn.0040bb40
lea ecx, [esp + 0x24]
mov byte [esp + 0x370], 0
call fcn.0040bb3a
lea ecx, [esp + 0x378]
mov dword [esp + 0x370], 0xffffffff
call fcn.0040bb3a
mov ecx, dword [esp + 0x368]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x364
ret 4