Function at 0x406c80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440f22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push esi
push edi
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x8c]
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
add ecx, 0x1c
call fcn.0043fa26
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x8c]
add ecx, 0x20
call fcn.0043fa26
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x8c]
add ecx, 0x1c
call sub.MFC42.DLL_CString::operator_1
push str.PROGRAMLOGFILE.CNC
mov edx, dword [ebp - 0x8c]
add edx, 0x1c
push edx
lea eax, [ebp - 0x84]
push eax
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x94]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0x20
call fcn.0043fa38
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call sub.MFC42.DLL_CString::CString
push 0
push str.PROGRAM
mov eax, dword [ebp - 0x8c]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x88]
push ecx
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x9c]
call fcn.00402550
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CString::CString
push 0x453e80
mov ecx, dword [ebp - 0x8c]
add ecx, 0x20
call fcn.00402550
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x406fae
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffffffff
je 0x406e13
cmp dword [ebp - 0x7c], 0xa
jne 0x406e08
mov ecx, dword [ebp - 0x78]
add ecx, 1
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x80]
add edx, 1
mov dword [ebp - 0x80], edx
jmp 0x406de3
cmp dword [ebp - 0x80], 0
jle 0x406e25
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x78]
mov dword [eax + 0x18], ecx
mov byte [ebp - 0x74], 1
mov byte [ebp - 0x70], 1
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 4
mov esi, eax
mov ecx, 9
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
add eax, 1
cdq
mov ecx, 7
idiv ecx
mov word [ebp - 0x20], ax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x14], edx
mov ax, word [ebp - 0x4c]
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x8c]
add ecx, 0x20
call fcn.00402550
push eax
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 4
mov esi, eax
mov ecx, 9
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
add eax, 1
cdq
mov ecx, 7
idiv ecx
mov word [ebp - 0x1c], ax
movsx edx, word [ebp - 0x20]
movsx eax, word [ebp - 0x1c]
cmp edx, eax
jne 0x406ee0
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x54]
jne 0x406ee0
mov dword [ebp - 0xa0], 1
jmp 0x406eea
mov dword [ebp - 0xa0], 0
mov dl, byte [ebp - 0xa0]
mov byte [ebp - 0x74], dl
movsx eax, word [ebp - 0x18]
xor ecx, ecx
cmp eax, dword [ebp - 0x4c]
sete cl
mov byte [ebp - 0x70], cl
mov edx, dword [ebp - 0x74]
and edx, 0xff
test edx, edx
je 0x406f77
push 2
push 0
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x70]
and ecx, 0xff
test ecx, ecx
je 0x406f66
push 0x453e84
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x8c]
call fcn.0040706f
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.00407731
push 0x453e88
mov ecx, dword [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.0040706f
jmp 0x406f75
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x8c]
call fcn.0040774f
jmp 0x406fac
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x8c]
call fcn.00407842
mov ecx, dword [ebp - 0x8c]
add ecx, 0x20
call fcn.00402550
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.00407608
mov dword [ebp - 0x6c], eax
jmp 0x406fcb
mov ecx, dword [ebp - 0x8c]
add ecx, 0x20
call fcn.00402550
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.00407608
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x406fde
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x8c]
call fcn.00407ae0
mov edx, dword [ebp - 0x8c]
mov dword [edx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4