Function at 0x10054460
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10142d1c
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0x207
lea eax, [esp + 0x49]
push ebx
push eax
mov byte [esp + 0x50], bl
call sub.MSVCR80.dll_memset
lea edx, [esp + 0x50]
add esp, 0xc
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x100544c0
mov edi, dword [sym.imp.MSVCR80.dll_strtok_s]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push 0x101520cc
push edx
mov dword [esp + 0x20], ebx
call edi
add esp, 0xc
lea ecx, [esp + 0x28]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp esi, ebx
mov dword [esp + 0x258], ebx
je 0x100545c5
mov ebp, 0x10
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10054517
sub eax, edx
je 0x100545c5
cmp dword [esp + 0x3c], ebx
je 0x1005453d
push 0x101520cc
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push esi
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
xor eax, eax
cmp dword [esp + 0x40], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
jae 0x10054574
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100545ab
cmp dword [esp + 0x40], ebp
mov eax, dword [esp + 0x2c]
jae 0x1005458e
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100545ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10054604
lea edx, [esp + 0x14]
push edx
push 0x101520cc
push ebx
call edi
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x10054510
lea ecx, [esp + 0x28]
mov dword [esp + 0x258], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.10130e50
add esp, 0x248
ret
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov esi, dword [ebx]
push 0x2d16
mov edi, str..UiRecord.cpp
add esi, 0xc
call fcn.1002f930
push eax
mov eax, dword [esi]
push str._s:_Failed_to_crate_dir.
push ebx
call eax
add esp, 0x10
lea ecx, [esp + 0x28]
mov dword [esp + 0x258], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 0x2d171006
jmp 0x100545dc