Function at 0x410b70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x438330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00418940
add esp, 0xc
mov byte [ebp - 0x214], 0
push 0x103
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.00418940
add esp, 0xc
xor eax, eax
mov word [ebp - 0x218], ax
mov eax, dword [str.INIPATH]
mov dword [ebp - 0x31c], eax
mov ecx, dword [0x42c11c]
mov dword [ebp - 0x318], ecx
push 0xfc
push 0
lea eax, [ebp - 0x314]
push eax
call fcn.00418940
add esp, 0xc
mov eax, dword [str.config.ini]
mov dword [ebp - 0x328], eax
mov ecx, dword [0x42ca40]
mov dword [ebp - 0x324], ecx
mov dx, word [0x42ca44]
mov word [ebp - 0x320], dx
mov al, byte [0x42ca46]
mov byte [ebp - 0x31e], al
mov eax, dword [str.Inst_Id]
mov dword [ebp - 0x330], eax
mov ecx, dword [0x42ca4c]
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x33c], 0
mov al, byte [0x42bf33]
mov byte [ebp - 0x344], al
xor eax, eax
mov dword [ebp - 0x343], eax
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x358], 0
push str._vGetInstances_:_Getting_instance_ids_of_CONFIG.INI
push 4
call fcn.0040ebe0
add esp, 8
lea eax, [ebp - 0x31c]
push eax
call fcn.0041907f
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x410d52
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00418e70
add esp, 8
lea eax, [ebp - 0x110]
push eax
call fcn.00418f70
add esp, 4
mov word [ebp - 0x218], ax
movzx eax, word [ebp - 0x218]
movzx ecx, byte [ebp + eax - 0x111]
cmp ecx, 0x5c
je 0x410d52
movzx eax, word [ebp - 0x218]
mov byte [ebp + eax - 0x110], 0x5c
movzx eax, word [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x39c], eax
cmp dword [ebp - 0x39c], 0x104
jae 0x410d3f
jmp 0x410d44
call fcn.00418b7f
mov ecx, dword [ebp - 0x39c]
mov byte [ebp + ecx - 0x110], 0
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00418e80
add esp, 8
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.00418e70
add esp, 8
push 0x42b624
lea eax, [ebp - 0x214]
push eax
call fcn.00417fc3
add esp, 8
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x410dd8
push 2
push 0
mov eax, dword [ebp - 0x34c]
push eax
call fcn.004192a0
add esp, 0xc
mov eax, dword [ebp - 0x34c]
push eax
call fcn.004196b3
add esp, 4
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00417e88
add esp, 4
mov eax, dword [ebp - 0x350]
push eax
call fcn.00418dde
add esp, 4
mov dword [ebp - 0x334], eax
mov eax, dword [ebp - 0x350]
push eax
push 0
mov ecx, dword [ebp - 0x334]
push ecx
call fcn.00418940
add esp, 0xc
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x338], eax
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x350]
push ecx
mov edx, dword [ebp - 0x334]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0
jne 0x410e5b
push str._vGetInstances_:_No_ini_file_found__
push 2
call fcn.0040ebe0
add esp, 8
mov eax, dword [ebp - 0x334]
push eax
call sub.PSI32.dll_Ordinal_70
jmp 0x411023
push 0x439b98
push 0x4398a0
call fcn.004125c0
mov eax, dword [0x439b98]
cmp dword [eax], 0
je 0x410e9c
mov eax, dword [0x439b98]
push eax
call sub.SBUTIL32.dll_Ordinal_26_1
mov dword [ebp - 8], eax
mov eax, dword [0x439b98]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.SBUTIL32.dll_Ordinal_29
mov eax, dword [ebp - 8]
push eax
call sub.PSI32.dll_Ordinal_70
jmp 0x410e6a
mov eax, dword [ebp - 0x354]
mov ecx, dword [ebp - 0x338]
lea edx, [ecx + eax - 1]
cmp dword [ebp - 0x334], edx
ja 0x410ff7
push str.Local
mov eax, dword [ebp - 0x334]
push eax
call fcn.0042a865
add esp, 8
test eax, eax
je 0x410ee8
push str.Instance_0000
mov eax, dword [ebp - 0x334]
push eax
call fcn.0042a865
add esp, 8
test eax, eax
jne 0x410f09
mov eax, dword [ebp - 0x334]
push eax
call fcn.00418f70
add esp, 4
mov ecx, dword [ebp - 0x334]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x334], edx
jmp 0x410e9c
lea eax, [ebp - 0x214]
push eax
push 5
lea ecx, [ebp - 0x344]
push ecx
push 0x42bf33
lea edx, [ebp - 0x330]
push edx
mov eax, dword [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x410f76
push str._vGetInstances_:_Error_while_reading_instance_id
push 2
call fcn.0040ebe0
add esp, 8
mov eax, dword [ebp - 0x358]
push eax
mov ecx, dword [ebp - 0x334]
push ecx
push str._vGetInstances_:_Last_Buffer:__s__Act_Count:__d
push 2
call fcn.0040ebe0
add esp, 0x10
mov eax, dword [ebp - 0x338]
push eax
call fcn.00418da6
add esp, 4
jmp 0x411023
push 0x10
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x344]
push ecx
call fcn.004199cd
add esp, 0xc
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp - 0x33c]
push eax
push str._wGetInstances_:_Get_0x_04x_Instance
push 2
call fcn.0040ebe0
add esp, 0xc
push 8
lea eax, [ebp - 0x33c]
push eax
mov ecx, dword [0x439b98]
push ecx
push 0x4398a0
call fcn.00412460
mov eax, dword [ebp - 0x334]
push eax
call fcn.00418f70
add esp, 4
mov ecx, dword [ebp - 0x334]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 0x358]
add eax, 1
mov dword [ebp - 0x358], eax
jmp 0x410e9c
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x358]
push ecx
push str._wGetInstances_:_Get__d_Instances_from__s_file
push 2
call fcn.0040ebe0
add esp, 0x10
mov eax, dword [ebp - 0x338]
push eax
call fcn.00418da6
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418922
mov esp, ebp
pop ebp
ret