Function at 0x404b10
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8b8
mov eax, dword [0x464ce4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x2a0]
push esi
push edi
push 0
call fcn.0040cf52
mov ecx, dword [ebx + 0xd7c]
sub ecx, dword [ebx + 0xd78]
mov eax, 0x7e07e07f
imul ecx
mov ecx, dword [ebx + 0x2a0]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.0040cf3d
mov ecx, dword [ebx + 0x2a0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x45de24
call eax
lea ecx, [ebp - 0x290]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [ebx + 0xd88]
mov eax, dword [ebx + 0xd8c]
lea ecx, [ebx + 0xd88]
mov dword [ebp - 0x8b0], ecx
cmp edx, eax
je 0x404bd9
mov dword [ebp - 0x8ac], edx
mov edx, eax
cmp eax, eax
je 0x404bd0
mov edi, dword [ebp - 0x8ac]
add dword [ebp - 0x8ac], 0x410
mov esi, edx
add edx, 0x410
mov ecx, 0x104
rep movsd dword es:[edi], dword [esi]
cmp edx, eax
jne 0x404ba7
mov ecx, dword [ebp - 0x8b0]
mov edx, dword [ebp - 0x8ac]
mov dword [ecx + 4], edx
mov edx, dword [ebx + 0xd7c]
sub edx, dword [ebx + 0xd78]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov eax, edx
xor esi, esi
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x8b4], esi
je 0x404d5f
mov dword [ebp - 0x8ac], esi
mov esi, dword [ebx + 0xd78]
add esi, dword [ebp - 0x8ac]
mov ecx, 0x104
lea edi, [ebp - 0x8a8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x8a8]
push ecx
lea edx, [ebp - 0x290]
push edx
push str._s_s
lea edx, [ebp - 0x498]
call fcn.00405df0
push 0x80
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0043a230
add esp, 0x18
push str.._patchfile.ini
push 0x80
lea ecx, [ebp - 0x88]
push ecx
push 0x45d83c
push 0x45de70
lea edx, [ebp - 0x8a8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x6a0]
push ecx
call fcn.00439269
add esp, 8
test eax, eax
je 0x404d11
mov edi, dword [ebp - 0x8b0]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x8a8]
cmp edx, ecx
jae 0x404ce2
mov eax, dword [edi]
cmp eax, edx
ja 0x404ce2
sub edx, eax
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, dword [edi + 8]
jne 0x404cd1
mov ecx, edi
call fcn.00405c30
mov eax, dword [edi + 4]
imul esi, esi, 0x410
add esi, dword [edi]
test eax, eax
je 0x404d0a
jmp 0x404cfb
cmp ecx, dword [edi + 8]
jne 0x404cee
mov ecx, edi
call fcn.00405c30
mov eax, dword [edi + 4]
test eax, eax
je 0x404d0a
lea esi, [ebp - 0x8a8]
mov ecx, 0x104
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x8b0]
add dword [edi + 4], 0x410
mov esi, dword [ebp - 0x8b4]
mov ecx, dword [ebx + 0x2a0]
inc esi
push esi
call fcn.0040cf52
mov ecx, dword [ebx + 0xd7c]
sub ecx, dword [ebx + 0xd78]
add dword [ebp - 0x8ac], 0x410
mov eax, 0x7e07e07f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x8b4], esi
cmp esi, eax
jb 0x404c0a
mov ecx, dword [ebp - 0x8b0]
mov edx, dword [ecx + 4]
sub edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
pop edi
xor ecx, ebp
add eax, edx
pop esi
call fcn.0043836a
mov esp, ebp
pop ebp
ret