Function at 0x409810
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41304b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x18]
push 1
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00409180
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004093e0
test eax, eax
jne 0x409877
mov byte [ebp - 4], bl
jmp 0x409b39
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
push 0x104
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operatornew
push 0x7d000
mov dword [ebp + 0xc], eax
call sub.MFC42.DLL_operatornew
add esp, 8
lea ecx, [ebp - 0xdc]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
push esi
call fcn.00409ee0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00409fd0
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
push ebx
mov ecx, 0x41
xor eax, eax
push ebx
push ebx
push ebx
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x118]
push edx
push eax
lea ecx, [ebp - 0xdc]
call fcn.0040a360
or esi, 0xffffffff
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040cfb2
lea edi, [esi + 1]
lea ecx, [ebp - 0x14]
push edi
push 0x41b754
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
cmp esi, ebx
jge 0x409924
push edi
push 0x41b380
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
cmp esi, ebx
jl 0x409976
push esi
lea edx, [ebp - 0x38]
push ebx
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0040cffa
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0040cfa6
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x34]
push ecx
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x34]
call fcn.0040cfa6
cmp esi, ebx
jge 0x4098ed
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0040cffa
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0040cfa6
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp - 0x14]
push ebx
push 0x1041
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CFile::Open
cmp eax, ebx
jne 0x409a0d
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x230]
push ecx
push edx
call sub.MFC42.DLL_CFile::GetStatus
mov al, byte [ebp - 0x220]
test al, 1
je 0x4099f7
mov ecx, dword [ebp - 0x14]
mov dl, al
lea eax, [ebp - 0x230]
and dl, 0xfe
push eax
push ecx
mov byte [ebp - 0x220], dl
call sub.MFC42.DLL_CFile::SetStatus
mov edx, dword [ebp - 0x14]
push ebx
push 0x1041
push edx
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Open
cmp eax, ebx
je 0x409a5b
lea ecx, [ebp - 0xdc]
call fcn.0040a210
mov edi, dword [ebp + 8]
push 0x7d000
push edi
lea ecx, [ebp - 0xdc]
call fcn.0040a3a0
mov esi, eax
cmp esi, ebx
jle 0x409a3d
mov eax, dword [ebp - 0x30]
push esi
push edi
lea ecx, [ebp - 0x30]
call dword [eax + 0x40]
cmp esi, 0x7d000
je 0x409a18
lea ecx, [ebp - 0x118]
lea edx, [ebp - 0x30]
push ecx
push edx
lea ecx, [ebp - 0xdc]
call fcn.0040abc0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0040d150
lea ecx, [ebp - 0xdc]
call fcn.0040a010
cmp al, bl
jne 0x4098bf
lea ecx, [ebp - 0xdc]
call fcn.00409f50
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 3
call fcn.0040a5c0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 2
cmp eax, ebx
je 0x409aab
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x409abb
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040cfa6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040cfa6
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040cfa6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x18]
call fcn.0040cfa6
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040cfa6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8