Function at 0x409c26
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f49c
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 0x409c7e
xor eax, eax
jmp 0x40a101
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
jne 0x409c8f
xor eax, eax
jmp 0x40a101
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 0x409cb7
xor eax, eax
jmp 0x40a101
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 0x409cfa
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x118]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x118], 0x100
je 0x409cb7
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 0x409d3c
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x40a101
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 0x409dc0
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 0x40a101
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 0x40a0eb
mov edx, dword [ebp - 0x11c]
movsx eax, byte [edx]
test eax, eax
je 0x40a0eb
cmp dword [ebp - 0x128], 0
jne 0x409e22
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 0x409e45
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 0x409e77
mov edx, dword [ebp - 0x128]
push edx
mov ecx, dword [ebp - 0x140]
call sym.OpenScanf.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 0x40a101
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 0x409f12
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 0x409f12
mov ecx, dword [ebp - 0x120]
add ecx, dword [ebp - 0x130]
movsx edx, byte [ecx - 1]
cmp edx, 0xd
jne 0x409f12
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 0x409f2e
mov eax, dword [ebp - 0x124]
mov byte [eax], 3
jmp 0x409fbc
mov ecx, dword [ebp - 0x120]
movsx edx, byte [ecx]
cmp edx, 0x5b
jne 0x409f8f
push 0x416338
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 0x409f8f
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 0x409fbc
push 0x41633c
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x409fb3
mov ecx, dword [ebp - 0x124]
mov byte [ecx], 2
jmp 0x409fbc
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 0x40a016
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x140]
call sym.OpenScanf.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 0x40a101
lea ecx, [ebp - 0x13c]
call sym.OpenScanf.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.OpenScanf.exe_public:_class_CMyString_const____thiscall_CMyString::operator_char_const__
push 0x416340
push 0x416344
lea ecx, [ebp - 0x13c]
call sym.OpenScanf.exe_public:_int___thiscall_CMyString::Replace_char_const___char_const__
push 0x416348
push 0x41634c
lea ecx, [ebp - 0x13c]
call sym.OpenScanf.exe_public:_int___thiscall_CMyString::Replace_char_const___char_const__
push 0x416350
push 0x416354
lea ecx, [ebp - 0x13c]
call sym.OpenScanf.exe_public:_int___thiscall_CMyString::Replace_char_const___char_const__
lea ecx, [ebp - 0x13c]
call sym.OpenScanf.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.OpenScanf.exe_public:_void___thiscall_CMyString::destructor_void_
jmp 0x409ddc
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