Function at 0x4063a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x423b5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov al, byte [esp + 0x13c]
push ebp
push esi
push edi
test al, al
mov al, byte [0x43b2d0]
mov dword [esp + 0xc], ecx
je 0x40664c
test al, al
jne 0x406670
mov al, byte [0x43b2bc]
mov ecx, 0x40
mov byte [esp + 0x34], al
xor eax, eax
lea edi, [esp + 0x35]
push 0x43b1a9
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4064d2
push 0
push 0x43b1a9
call ebp
test eax, eax
jne 0x4064d2
mov esi, str.C:SNWriter_LOG_
mov eax, 0x43b1a9
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40644f
test cl, cl
je 0x40644b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40644f
add eax, 2
add esi, 2
test cl, cl
jne 0x40642b
xor eax, eax
jmp 0x406454
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0x30
push str.Warning
jne 0x406474
mov ecx, dword [0x43b2c0]
push str.Log_Dir_not_exist_and_can_not_be_created.
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x406670
mov ecx, dword [0x43b2c0]
push str.Log_Dir_not_exist_and_can_not_be_created._r_nUse_default_C:SNWriter_LOG.
call sub.MFC42.DLL_CWnd::MessageBoxA
mov edi, str.C:SNWriter_LOG_
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x43b1a9
mov eax, ecx
mov esi, edi
mov edi, 0x43b1a9
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
test eax, eax
jne 0x4064d2
mov ecx, dword [0x43b2c0]
push 0x30
push str.Warning
push str.Can_not_create_default_log_dir_C:SNWriter_LOG_
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x406670
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and eax, 0xffff
lea esi, [edx + 0x172]
mov edx, dword [esp + 0x18]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1a]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1a]
push edx
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push 0x43b1a9
push str._s_04u__02u__02u__02u__02u__02u_
push esi
call edi
add esp, 0x24
push 0
push esi
call ebp
test eax, eax
jne 0x406562
mov ecx, dword [0x43b2c0]
push 0x30
push str.Warning
push str.Can_not_create_default_sub_log_dir.
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x406670
push esi
lea eax, [esp + 0x38]
push str._sSN_Writer.log
push eax
call edi
lea ecx, [esp + 0x40]
push ecx
call fcn.00414720
add esp, 0x10
lea edx, [esp + 0x34]
push esi
push str._sBROM_DLL.log
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x34]
push eax
call sub.brom.dll_Ordinal_187
call sub.brom.dll_Ordinal_4
push esi
lea ecx, [esp + 0x38]
push str._sMETA_DLL.log
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x34]
push edx
call sub.META_DLL.dll_Ordinal_1088
push esi
lea eax, [esp + 0x38]
push str._sSP_BROM_DLL.log
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
call sub.SPBootMode.dll_Ordinal_1011
call sub.SPBootMode.dll_Ordinal_1012
push esi
lea edx, [esp + 0x38]
push str._sSP_META_DLL.log
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x34]
push eax
call sub.SPMETA_DLL.dll_Ordinal_73
push 0x43b2bc
push 0
push 0x37a
push str.Z:develSN_Writer_devExecuteSNbase.cpp
lea ecx, [esp + 0x30]
call sub.MTRACE.dll_public:_void___thiscall_MetaTrace::constructor_char_const___int__unsigned_char__char_const__
mov ecx, dword [str.SN_Writer_V1.1632.00]
mov edx, dword [0x43b2d8]
push ecx
push 0x432a14
push edx
push eax
mov dword [esp + 0x150], 0
call sub.MTRACE.dll_public:_void___cdecl_MetaTrace::operator___struct_MetaTraceHandle___char_const__
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [esp + 0x140], 0xffffffff
call sub.MTRACE.dll_public_virtual:_void___thiscall_MetaTrace::destructor_void_
mov byte [0x43b2d0], 1
jmp 0x406670
test al, al
je 0x406670
call sub.brom.dll_Ordinal_5
call sub.META_DLL.dll_Ordinal_79
call sub.SPBootMode.dll_Ordinal_1013
call sub.SPMETA_DLL.dll_Ordinal_74
call fcn.004147f0
mov byte [0x43b2d0], 0
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x138
ret 4