Function at 0x402330
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4388c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x598
mov eax, dword [0x44e7a0]
push ebx
push esi
push edi
push 0x43d5a0
lea ecx, [esp + 0x78]
mov dword [esp + 0x5a0], 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__]
xor ebx, ebx
push 0x43d5a0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5b0], ebx
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__]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x5b4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4024d6
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x197], bl
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 str.mylk.dat
push eax
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x5b8], 2
call fcn.00401fd0
add esp, 0xc
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5b0], 3
call dword [0x43d1c4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x5ac], 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 + 0x2c]
mov byte [esp + 0x5ac], 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_]
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x402434
lea eax, [esp + 0x5c]
push 0x43d76c
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4024d6
push esi
push 0x3ff
lea eax, [esp + 0x1a0]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
push esi
mov edi, eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x198]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + edi + 0x19c], bl
call dword [0x43d1b0]
push 1
push ebx
push 0x43d768
lea ecx, [esp + 0x80]
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 edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
je 0x4024d6
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
push ebx
push ecx
lea ecx, [esp + 0x9c]
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_]
call fcn.0042e9d0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x4024d6
cmp esi, 0x5f5e100
jb 0x40250e
xor edx, edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
lea eax, [esp + 0x48]
mov dword [esp + 0x50], edx
push eax
mov byte [esp + 0x58], dl
call fcn.00430aa0
lea ecx, [esp + 0x4c]
push 0xd
push ecx
call fcn.00430a70
xor edx, edx
mov ecx, 0x5f5e100
div ecx
add esp, 0xc
mov esi, edx
add esi, ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x5ac], bl
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 + 0x74]
mov dword [esp + 0x5ac], 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 + 0x5a4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x59c]
mov eax, esi
call fcn.00437d67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret