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

Disassembly:
push 0xffffffffffffffff
push 0x438970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x57c
mov eax, dword [0x44e7a0]
push ebx
push esi
push edi
push 0x43d5a0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x588], eax
mov dword [esp + 0x10], 0
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 + 0x80]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x84]
mov ebx, 1
push eax
mov dword [esp + 0x598], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
push 0x43d5a0
jne 0x4027d1
mov esi, dword [esp + 0x59c]
mov ecx, esi
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 dword [esp + 0xc], ebx
jmp 0x402929
lea ecx, [esp + 0x68]
mov byte [esp + 0x187], 0
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 + 0x80]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x594], 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__]
push str.mylk.dat
push eax
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x59c], 3
call fcn.00401fd0
add esp, 0xc
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x594], 4
call dword [0x43d1c4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x590], 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 + 0x2c]
mov byte [esp + 0x590], 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_]
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x40285e
lea eax, [esp + 0x68]
push 0x43d76c
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4028e8
push esi
push 0x3ff
lea eax, [esp + 0x18c]
push ebx
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 + 0x184]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + edi + 0x188], 0
call dword [0x43d1b0]
push ebx
push 0
push 0x43d768
lea ecx, [esp + 0x54]
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 0x4028e8
push ebx
lea esi, [eax + 1]
push esi
push 0x43d768
lea ecx, [esp + 0x54]
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 ecx, 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 [ecx]
jne 0x4028fe
mov esi, dword [esp + 0x598]
push 0x43d5a0
mov ecx, esi
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__]
jmp 0x402914
sub eax, esi
push eax
push esi
mov esi, dword [esp + 0x5a0]
push esi
lea ecx, [esp + 0x54]
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_]
lea ecx, [esp + 0x64]
mov byte [esp + 0x590], bl
mov dword [esp + 0xc], ebx
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 + 0x590], 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_]
mov ecx, dword [esp + 0x588]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x57c]
pop ebx
call fcn.00437d67
add esp, 0x588
ret 4