Function at 0x45b661
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d031
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
push edi
mov dword [ebp - 0x54c], ecx
mov word [ebp - 0x21c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00465600
add esp, 8
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x45b6eb
push 0x2f
lea edx, [ebp - 0x21c]
push edx
call fcn.00465600
add esp, 8
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x43c]
mov word [eax], 0
mov word [ebp - 0x434], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x432]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
lea ecx, [ebp - 0x434]
push ecx
mov edx, dword [0x4c8dd4]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x22c], 0
jmp 0x45b744
mov eax, dword [ebp - 0x22c]
add eax, 1
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 2
jge 0x45b791
push 0x5c
lea ecx, [ebp - 0x434]
push ecx
call fcn.00465600
add esp, 8
mov dword [ebp - 0x548], eax
cmp dword [ebp - 0x548], 0
jne 0x45b784
push 0x2f
lea edx, [ebp - 0x434]
push edx
call fcn.00465600
add esp, 8
mov dword [ebp - 0x548], eax
mov eax, dword [ebp - 0x548]
mov word [eax], 0
jmp 0x45b735
push str..config.ini
push 0
push 0x4a3148
push 0x4a3150
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, 0xf4240
div ecx
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, 0xf4240
div ecx
mov eax, edx
xor edx, edx
mov ecx, 0x2710
div ecx
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, 0x2710
div ecx
mov dword [ebp - 0x544], edx
lea edx, [ebp - 0x434]
push edx
push 0xffffffffffffffff
push 0
push 0x804
push 1
push 1
mov eax, dword [ebp - 0x544]
push eax
mov cx, word [ebp - 0x228]
push ecx
mov dx, word [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x43c]
add eax, 2
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x43c]
add edx, 2
push edx
push 0x4a3158
call fcn.004876c0
add esp, 0x34
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x224]
call fcn.00483134
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x2710
mov byte [ebp - 0x540], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x53f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea ecx, [ebp - 0x224]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str._sconfigDynamicInfo.ini
push 0x103
lea ecx, [ebp - 0x540]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [ebp - 0x540]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x4a3184
push 0x4a3190
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x438], eax
push 0
mov ecx, dword [ebp - 0x438]
push ecx
call fcn.00487db0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret