Function at 0x402a60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4080d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov al, byte [esi + 0xc4]
mov byte [ebp - 4], 2
test al, al
jne 0x402d85
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x402b0b
mov ebx, dword [ebp + 0xc]
xor eax, eax
lea ecx, [ebp - 0x1c]
mov al, byte [esi + ebx]
push eax
push str._02x
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [ebp - 0x1c]
lea eax, [ebp + 0x10]
push 0x20
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040785e
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040781c
inc esi
cmp esi, edi
jl 0x402ac7
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x44]
and eax, 0xffff
mov ebx, dword [ebp - 0x42]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x4a]
and eax, 0xffff
mov esi, dword [ebp - 0x3e]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x46]
and eax, 0xffff
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
and eax, 0xffff
and edi, 0xffff
and ebx, 0xffff
mov dword [ebp - 0x24], eax
and esi, 0xffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x24]
push esi
push edx
push ebx
push edi
lea eax, [ebp - 0x14]
push str._02d:_02d:_02d:_03d
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
lea ecx, [ebp - 0x18]
push str._s_s_s_r_n
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x2c
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x402baf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov dword [ebp + 0x10], eax
jmp 0x402bb6
mov dword [ebp + 0x10], 0
mov ecx, dword [ebp + 0x10]
push 0x3ed
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb1
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x38], esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x20]
push edx
push 0
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetWindowTextLengthA
cmp eax, 0x186a0
jle 0x402d79
mov ecx, dword [ebp - 0x28]
mov al, byte [ecx + 0xc5]
test al, al
je 0x402d46
push 0x40b0b8
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 5
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x402c50
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x40b538
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
push ecx
mov ecx, dword [ebp + 0x10]
push 0x3ed
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x34]
push ebx
push edi
push eax
push ecx
push edx
lea eax, [ebp - 0x14]
push 0x40b08c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x14]
lea edx, [ebp + 0x10]
push ecx
push 0x40b078
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 6
call fcn.0040781c
mov bl, 8
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [ebp - 0x14]
push 0
push 0x1001
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CStdioFile::Open
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CStdioFile::Flush
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.004078dc
jmp 0x402d2b
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 5
call fcn.0040781c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0040781c
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x303
push edx
call edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040781c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040781c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0040781c
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0040781c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc