Function at 0x414168
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426e1c
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 0x4141c0
xor eax, eax
jmp 0x414638
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
jne 0x4141d1
xor eax, eax
jmp 0x414638
push 0x43768c
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 0x4141f9
xor eax, eax
jmp 0x414638
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 0x41423c
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x118]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x118], 0x100
je 0x4141f9
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 0x41427e
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x414638
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 0x414302
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 0x414638
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 0x414622
mov edx, dword [ebp - 0x11c]
movsx eax, byte [edx]
test eax, eax
je 0x414622
cmp dword [ebp - 0x128], 0
jne 0x414364
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 0x414387
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 0x4143b9
mov edx, dword [ebp - 0x128]
push edx
mov ecx, dword [ebp - 0x140]
call sym.PcMFStation.exe_private:_void___thiscall_CResIni::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 0x414638
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 0x414454
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 0x414454
mov ecx, dword [ebp - 0x120]
add ecx, dword [ebp - 0x130]
movsx edx, byte [ecx - 1]
cmp edx, 0xd
jne 0x414454
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 0x414470
mov eax, dword [ebp - 0x124]
mov byte [eax], 3
jmp 0x4144fe
mov ecx, dword [ebp - 0x120]
movsx edx, byte [ecx]
cmp edx, 0x5b
jne 0x4144d1
push 0x437690
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 0x4144d1
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 0x4144fe
push 0x437694
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4144f5
mov ecx, dword [ebp - 0x124]
mov byte [ecx], 2
jmp 0x4144fe
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 0x414558
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x140]
call sym.PcMFStation.exe_private:_void___thiscall_CResIni::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 0x414638
mov edx, dword [ebp - 0x120]
push edx
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
push 0x437698
push 0x43769c
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::Replace
push 0x4376a0
push 0x4376a4
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::Replace
push 0x4376a8
push 0x4376ac
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::Replace
lea ecx, [ebp - 0x13c]
call fcn.00401307
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 sub.MFC42.DLL_CString::CString
jmp 0x41431e
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