Function at 0x122aee3f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234d3dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe3c
push edi
cmp dword [0x123b7fc4], 0
je 0x122aee6c
jmp 0x122af16c
mov dword [0x123b7fc4], 1
mov dword [ebp - 0xc20], 0x400
mov byte [ebp - 0x410], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0xc1c], 0
mov dword [ebp - 0xc18], 0
mov word [ebp - 0xc14], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xc12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xe30], 0x123b7fc8
mov dword [ebp - 0xc24], 0
mov word [ebp - 0xe2c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xe2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.OAgent.ini
call fcn.122a8168
push eax
push 0x1239d930
lea eax, [ebp - 0xe2c]
push eax
call fcn.122cb738
add esp, 0x10
lea ecx, [ebp - 0xe2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0xc14]
push eax
mov ecx, dword [ebp - 0xe30]
push ecx
push 0x1235285c
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0xc24], eax
cmp dword [ebp - 0xc24], 0
jbe 0x122aef85
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [ebp + edx*2 - 0xc16]
test eax, eax
jne 0x122aef85
push 0x400
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0xc14]
push edx
call fcn.1230d3a0
add esp, 0xc
mov dword [ebp - 0xc1c], eax
mov dword [ebp - 0x414], 0x20019
cmp dword [ebp - 0xc1c], 0
jne 0x122af06f
lea ecx, [ebp - 0xe38]
call fcn.122c3010
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x414]
push eax
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0xe38]
call fcn.122c3180
test eax, eax
je 0x122af052
lea ecx, [ebp - 0xc1c]
push ecx
push 0x123528f0
lea ecx, [ebp - 0xe38]
call fcn.122c35a0
mov dword [ebp - 0xc18], eax
cmp dword [ebp - 0xc18], 0
je 0x122af052
cmp dword [ebp - 0xc1c], 0x400
jae 0x122af023
mov edx, dword [ebp - 0xc1c]
push edx
mov eax, dword [ebp - 0xc18]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.122cb390
add esp, 0xc
jmp 0x122af02d
mov dword [ebp - 0xc1c], 0
mov edx, dword [ebp - 0xc18]
mov dword [ebp - 0xe48], edx
mov eax, dword [ebp - 0xe48]
push eax
call fcn.122ca6a6
add esp, 4
mov dword [ebp - 0xc18], 0
lea ecx, [ebp - 0xe38]
call fcn.122c31d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe38]
call fcn.122c3100
cmp dword [ebp - 0xc1c], 0
jne 0x122af0f2
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
push 0
lea edx, [ebp - 0xc14]
push edx
call fcn.122ca640
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc14]
push ecx
mov edx, dword [ebp - 0xe30]
push edx
push 0x123528f0
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
mov dword [ebp - 0xc24], eax
cmp dword [ebp - 0xc24], 0
jbe 0x122af0f2
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0xc16]
test ecx, ecx
jne 0x122af0f2
push 0x400
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0xc14]
push eax
call fcn.1230d3a0
add esp, 0xc
mov dword [ebp - 0xc1c], eax
cmp dword [ebp - 0xc1c], 0
je 0x122af16c
cmp dword [ebp - 0xc1c], 4
jbe 0x122af16c
lea ecx, [ebp - 0x410]
mov dword [ebp - 0xe3c], ecx
cmp dword [ebp - 0xe3c], 0
je 0x122af16c
mov edx, dword [ebp - 0xe3c]
cmp dword [edx], 1
je 0x122af16c
mov eax, dword [ebp - 0xe3c]
add eax, 4
mov dword [ebp - 0xe40], eax
mov ecx, dword [ebp - 0xe40]
call fcn.122afad0
mov dword [ebp - 0xe44], eax
cmp dword [ebp - 0xe44], 0
je 0x122af16c
mov ecx, dword [ebp - 0xc1c]
sub ecx, 4
cmp dword [ebp - 0xe44], ecx
ja 0x122af16c
mov edx, dword [ebp - 0xe40]
mov eax, dword [edx + 4]
mov dword [0x123b7fc0], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret