Function at 0x41c096
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4279cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x124], eax
cmp dword [ebp + 8], 0
jne 0x41c0ee
xor eax, eax
jmp 0x41c571
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
jne 0x41c0ff
xor eax, eax
jmp 0x41c571
push str.r__n_r_t________________
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x41c127
xor eax, eax
jmp 0x41c571
mov dword [ebp - 0x118], 0
mov ecx, dword [ebp - 0x134]
push ecx
push 0x100
push 1
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x41c16a
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x118]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x118], 0x100
je 0x41c127
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
jne 0x41c1ac
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x41c571
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x138]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
push 1
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x10]
je 0x41c230
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x41c571
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 0
je 0x41c55b
mov edx, dword [ebp - 0x11c]
movsx eax, byte [edx]
test eax, eax
je 0x41c55b
cmp dword [ebp - 0x128], 0
jne 0x41c292
push 0xc
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x124], ecx
jmp 0x41c2b5
push 0xc
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edx, dword [ebp - 0x124]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 0
jne 0x41c2e7
mov edx, dword [ebp - 0x128]
push edx
mov ecx, dword [ebp - 0x140]
call sym.PcMFStation.exe_private:_void___thiscall_CResIniForSDK::FreeIniEntry_struct_INI_ENTRY__
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
jmp 0x41c571
push 0xc
push 0
mov ecx, dword [ebp - 0x124]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
push 0xa
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x41c382
mov ecx, dword [ebp - 0x11c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jle 0x41c382
mov ecx, dword [ebp - 0x120]
add ecx, dword [ebp - 0x130]
movsx edx, byte [ecx - 1]
cmp edx, 0xd
jne 0x41c382
mov eax, dword [ebp - 0x120]
add eax, dword [ebp - 0x130]
mov byte [eax - 1], 0
mov ecx, dword [ebp - 0x120]
movsx edx, byte [ecx]
cmp edx, 0x3b
jne 0x41c39e
mov eax, dword [ebp - 0x124]
mov byte [eax], 3
jmp 0x41c42c
mov ecx, dword [ebp - 0x120]
movsx edx, byte [ecx]
cmp edx, 0x5b
jne 0x41c3ff
push 0x438950
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x41c3ff
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x124]
mov byte [edx], 1
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov ecx, dword [ebp - 0x12c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x120], edx
jmp 0x41c42c
push 0x438954
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x41c423
mov ecx, dword [ebp - 0x124]
mov byte [ecx], 2
jmp 0x41c42c
mov edx, dword [ebp - 0x124]
mov byte [edx], 3
mov eax, dword [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 0x124]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x124]
cmp dword [edx + 4], 0
jne 0x41c486
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x140]
call sym.PcMFStation.exe_private:_void___thiscall_CResIniForSDK::FreeIniEntry_struct_INI_ENTRY__
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
jmp 0x41c571
lea ecx, [ebp - 0x13c]
call sym.PcMFStation.exe_public:_void___thiscall_CMyString::constructor_void_
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x120]
push edx
lea ecx, [ebp - 0x13c]
call sym.PcMFStation.exe_public:_class_CMyString_const____thiscall_CMyString::operator_char_const__
push 0x438958
push 0x43895c
lea ecx, [ebp - 0x13c]
call sym.PcMFStation.exe_public:_int___thiscall_CMyString::Replace_char_const___char_const__
push 0x438960
push 0x438964
lea ecx, [ebp - 0x13c]
call sym.PcMFStation.exe_public:_int___thiscall_CMyString::Replace_char_const___char_const__
push 0x438968
push 0x43896c
lea ecx, [ebp - 0x13c]
call sym.PcMFStation.exe_public:_int___thiscall_CMyString::Replace_char_const___char_const__
lea ecx, [ebp - 0x13c]
call sym.PcMFStation.exe_public:_char_const____thiscall_CMyString::operator_char_const__void_const
push eax
mov eax, dword [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x120]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
push 0
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call sym.PcMFStation.exe_public:_void___thiscall_CMyString::destructor_void_
jmp 0x41c24c
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4