Function at 0x4417e0
Capabilities:
Check if file exists
Create directory
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x497b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x370
mov eax, dword [0x4bdc98]
push ebx
push esi
push edi
mov dword [esp + 0x374], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x268], 0
mov ecx, 0x40
lea edi, [esp + 0x269]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x26c]
push eax
push 0
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x268]
push ecx
lea ecx, [esp + 0x148]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 1
push 0
push 0x4a78f8
lea ecx, [esp + 0x150]
mov dword [esp + 0x390], 0
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
push 0x4a3558
lea ecx, [esp + 0x12c]
mov esi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp esi, dword [edx]
mov byte [esp + 0x384], 1
je 0x441a0b
jmp 0x4418b0
push 0x4a78f8
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edi, eax
push 0x4a78f8
lea ecx, [esp + 0x84]
mov byte [esp + 0x388], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ebx, eax
push esi
push 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x150]
mov byte [esp + 0x390], 3
call dword [sym.imp.MSVCP71.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__::substr_unsigned_int__unsigned_int_]
push ebx
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x390], 4
call fcn.00401f80
push edi
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x39c], 5
call fcn.00401f80
add esp, 0x18
push eax
lea ecx, [esp + 0x12c]
mov byte [esp + 0x388], 6
call dword [0x49e768]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x384], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x48]
mov byte [esp + 0x384], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x64]
mov byte [esp + 0x384], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x80]
mov byte [esp + 0x384], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x384], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
inc esi
push esi
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x150]
call dword [sym.imp.MSVCP71.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__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x148]
mov byte [esp + 0x388], 7
call dword [sym.imp.MSVCP71.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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x10]
mov byte [esp + 0x384], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 1
push 0
push 0x4a78f8
lea ecx, [esp + 0x150]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov esi, eax
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp esi, dword [eax]
jne 0x4418b0
mov ebx, dword [esp + 0xc]
lea ecx, [ebx + 0x218]
push ecx
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x114]
push eax
call fcn.00402080
add esp, 0xc
push 0x4a78f4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x388], 8
call dword [0x49e770]
mov eax, dword [esp + 0x140]
mov edi, dword [esp + 0x12c]
mov esi, 0x10
cmp eax, esi
jae 0x441a62
lea edi, [esp + 0x12c]
test edi, edi
je 0x441a7b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x441a7b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x4a78f8
lea ecx, [esp + 0x12c]
call dword [0x49e770]
push ebx
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00402080
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, esi
jb 0x441aaf
mov eax, dword [eax + 4]
jmp 0x441ab2
add eax, 4
push eax
push 0x4a78b0
push ebx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebx + 0x420]
push eax
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esp + 0xe8]
test eax, eax
mov byte [esp + 0x384], 9
jne 0x441b05
push str.LogSwitch
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP71.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__]
lea ecx, [ebx + 0x31c]
push ecx
lea ecx, [esp + 0xf4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esp + 0x104]
test eax, eax
mov byte [esp + 0x384], 0xa
jne 0x441b3e
push 0x4a2b60
lea ecx, [esp + 0xf4]
call dword [sym.imp.MSVCP71.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__]
mov edx, dword [esp + 0x110]
xor eax, eax
mov byte [esp + 0x160], 0
mov ecx, 0x40
lea edi, [esp + 0x161]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esp + 0x124], esi
jae 0x441b70
lea edx, [esp + 0x110]
cmp dword [esp + 0xec], esi
mov ecx, dword [esp + 0xd8]
jae 0x441b87
lea ecx, [esp + 0xd8]
cmp dword [esp + 0x108], esi
mov eax, dword [esp + 0xf4]
jae 0x441b9e
lea eax, [esp + 0xf4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push 0x104
lea edx, [esp + 0x168]
push edx
push 0x4a3558
push ecx
push eax
call edi
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, ebx
mov byte [esp + 0x388], 0xb
call fcn.00441290
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x441c14
push 1
push 0x4a40b8
push eax
push 0
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP71.dll_public:_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::compare_unsigned_int__unsigned_int__char_const___unsigned_int_const]
test eax, eax
setne dl
mov byte [ebx + 0x10c], dl
push str.LogPrintLevel
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP71.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__]
cmp dword [esp + 0x124], esi
mov edx, dword [esp + 0x110]
jae 0x441c3d
lea edx, [esp + 0x110]
cmp dword [esp + 0xec], esi
mov ecx, dword [esp + 0xd8]
jae 0x441c54
lea ecx, [esp + 0xd8]
cmp dword [esp + 0x108], esi
mov eax, dword [esp + 0xf4]
jae 0x441c6b
lea eax, [esp + 0xf4]
push edx
push 0x104
lea edx, [esp + 0x168]
push edx
push 0x4a3558
push ecx
push eax
call edi
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP71.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__]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, ebx
call fcn.00441290
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x441cc0
lea edx, [esp + 0xb8]
push edx
mov ecx, ebx
call fcn.00441560
push str.LogMaxSize
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP71.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__]
cmp dword [esp + 0x124], esi
mov edx, dword [esp + 0x110]
jae 0x441ce9
lea edx, [esp + 0x110]
cmp dword [esp + 0xec], esi
mov ecx, dword [esp + 0xd8]
jae 0x441d00
lea ecx, [esp + 0xd8]
cmp dword [esp + 0x108], esi
mov eax, dword [esp + 0xf4]
jae 0x441d17
lea eax, [esp + 0xf4]
push edx
push 0x104
lea edx, [esp + 0x168]
push edx
push 0x4a3558
push ecx
push eax
call edi
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP71.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__]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, ebx
call fcn.00441290
mov eax, dword [esp + 0xcc]
test eax, eax
mov esi, dword [sym.imp.MSVCR71.dll_atoi]
je 0x441d8a
cmp dword [esp + 0xd0], 0x10
mov eax, dword [esp + 0xbc]
jae 0x441d7b
lea eax, [esp + 0xbc]
push eax
call esi
add esp, 4
shl eax, 0x14
mov dword [ebx + 0x104], eax
push str.AttachSizeAction
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP71.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__]
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x110]
mov eax, 0x10
cmp ecx, eax
jae 0x441dba
lea edx, [esp + 0x110]
cmp dword [esp + 0xec], eax
mov ecx, dword [esp + 0xd8]
jae 0x441dd1
lea ecx, [esp + 0xd8]
cmp dword [esp + 0x108], eax
mov eax, dword [esp + 0xf4]
jae 0x441de8
lea eax, [esp + 0xf4]
push edx
push 0x104
lea edx, [esp + 0x168]
push edx
push 0x4a3558
push ecx
push eax
call edi
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP71.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__]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, ebx
call fcn.00441290
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x441e52
cmp dword [esp + 0xd0], 0x10
mov eax, dword [esp + 0xbc]
jae 0x441e46
lea eax, [esp + 0xbc]
push eax
call esi
add esp, 4
mov dword [ebx + 0x108], eax
push str.SaveCount
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP71.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__]
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x110]
mov eax, 0x10
cmp ecx, eax
jae 0x441e82
lea edx, [esp + 0x110]
cmp dword [esp + 0xec], eax
mov ecx, dword [esp + 0xd8]
jae 0x441e99
lea ecx, [esp + 0xd8]
cmp dword [esp + 0x108], eax
mov eax, dword [esp + 0xf4]
jae 0x441eb0
lea eax, [esp + 0xf4]
push edx
push 0x104
lea edx, [esp + 0x168]
push edx
push 0x4a3558
push ecx
push eax
call edi
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP71.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__]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, ebx
call fcn.00441290
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x441f41
mov eax, dword [esp + 0xd0]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0xbc]
jae 0x441f14
lea eax, [esp + 0xbc]
push eax
call esi
add esp, 4
test eax, eax
jle 0x441f41
cmp dword [esp + 0xd0], edi
mov eax, dword [esp + 0xbc]
jae 0x441f35
lea eax, [esp + 0xbc]
push eax
call esi
add esp, 4
mov dword [ebx + 0x528], eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x384], 0xa
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xf0]
mov byte [esp + 0x384], 9
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x384], 8
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10c]
mov byte [esp + 0x384], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x128]
mov byte [esp + 0x384], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x144]
mov dword [esp + 0x384], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x37c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x374]
call fcn.00491e29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret