Function at 0x4024b0
Capabilities:
Get common file path
Get file size
Read .ini file
Read file on windows

Disassembly:
sub esp, 0x474
mov eax, dword [esp + 0x478]
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4027f2
lea ecx, [esp + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4027eb
cmp esi, 0x2c0
jb 0x4027eb
xor edx, edx
push edi
mov dword [esp + 0x19], edx
mov ecx, 0xb0
xor eax, eax
lea edi, [esp + 0x1c1]
mov byte [esp + 0x1c0], bl
mov dword [esp + 0x1d], edx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [esp + 0x21], edx
push ebx
lea eax, [esi - 0x2d0]
push ebx
mov word [esp + 0x2d], dx
push eax
push ebp
mov byte [esp + 0x28], bl
mov byte [esp + 0x37], dl
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov al, byte [esp + 0x24]
push ebx
add esi, 0xfffffd40
push ebx
push esi
push ebp
mov byte [esp + 0x24], al
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x1c8]
push 0x2c0
push edx
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x48c]
push eax
lea ecx, [esp + 0x1c4]
push 0x2c0
push ecx
push edx
call fcn.00402200
add esp, 0x10
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2a]
and eax, 0xffff
and ecx, 0xffff
add eax, ecx
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x28]
and eax, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
shl eax, 1
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x36]
mov eax, dword [esp + 0x32]
and edx, 0xffff
add ecx, edx
mov edx, dword [esp + 0x2e]
and eax, 0xffff
and edx, 0xffff
add ecx, eax
lea eax, [ecx + edx + 0x6e]
push eax
call fcn.00402d70
add esp, 4
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0xbd]
mov byte [esp + 0xbc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xbc]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, 0x404100
xor eax, eax
lea edx, [esp + 0xbc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x3c], bl
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [esp + 0x48c]
and ecx, 3
lea edx, [esp + 0xbc]
rep movsb byte es:[edi], byte [esi]
lea edi, [eax + 0x29c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x7c], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x3d]
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov byte [esp + ecx + 0xbb], 0x78
mov ecx, 0xf
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x7d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x3c]
push eax
push pe_nt_image_headers32
push ecx
push 0x4042b8
push 0x4042b4
push str.Config
call esi
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x80]
push pe_nt_image_headers32
push eax
push 0x4042b8
push str.TIME
push str.Config
call esi
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x10
jae 0x402788
call fcn.00402d7a
and eax, 0x8000000f
jns 0x402758
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, dword [str.0123456789ABCDEF]
inc ebx
cmp ebx, 0x20
mov dl, byte [eax + ecx]
mov byte [esp + ebx + 0x3b], dl
jl 0x402747
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0x4042b4
push str.Config
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x48c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [edx + 0x60]
mov eax, ecx
mov esi, edi
mov edi, ebx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x474
ret
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x474
ret