Function at 0x4ea730
Capabilities:
Get file size
Read .ini file
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0xd8
push 0xffffffffffffffff
push 0x59f2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp + 0xd4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xe0]
mov ebx, dword [ebp + 0xe4]
push eax
push 0x52
lea eax, [ebp]
push eax
push 0
push 0x5bd28c
push 0x5bd28c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x50
jne 0x4ea8f8
xor eax, eax
xor esi, esi
mov word [ebp + 0xd0], ax
movzx eax, word [ebp + esi*4]
movzx ecx, word [ebp + esi*4 + 2]
mov edx, eax
mov word [ebp + 0xcc], ax
mov edi, ecx
mov word [ebp + 0xce], cx
cmp edx, 0x30
jb 0x4ea7c8
cmp edx, 0x39
jbe 0x4ea7e1
mov eax, edx
cmp eax, 0x61
jb 0x4ea7d4
cmp eax, 0x66
jbe 0x4ea7e1
lea eax, [edx - 0x41]
cmp ax, 5
ja 0x4ea8f8
cmp edi, 0x30
jb 0x4ea7eb
cmp ecx, 0x39
jbe 0x4ea807
cmp ecx, 0x61
jb 0x4ea7f5
cmp ecx, 0x66
jbe 0x4ea807
cmp ecx, 0x41
jb 0x4ea8f8
cmp ecx, 0x46
ja 0x4ea8f8
push 0x10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xcc]
push eax
call fcn.005630a7
mov byte [ebp + esi + 0xa4], al
add esp, 0xc
lea eax, [ebp + 0xd0]
cmp dword [ebp - 0x28], eax
jne 0x4ea8f8
inc esi
cmp esi, 0x28
jl 0x4ea7a2
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4ea8f8
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4ea8f8
cmp dword [ebp - 0x20], 0
jne 0x4ea8f8
cmp eax, 0x6b
jbe 0x4ea8f8
push 0
sub eax, 0x6b
push eax
push 0
push 2
push 0
push ebx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], vtable.Utils::ResourceHolders::CDwHandleP.0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ea8e9
cmp eax, 0xffffffff
je 0x4ea8e9
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::fview_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_void___struct_Utils::ResourceHolders::fview_dtor_t__.0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], vtable.Utils::ResourceHolders::file_view_t.0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4ea91d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00472cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044cb70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd4]
xor ecx, ebp
call fcn.005395e6
lea esp, [ebp + 0xd8]
pop ebp
ret
lea ecx, [ebp + 0xa4]
push ecx
push 0x5e7758
push dword [ebp - 0x24]
push eax
call fcn.00410390
add esp, 0x10
test eax, eax
jne 0x4ea8dd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00472cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044cb70
mov al, 1
jmp 0x4ea8fa