Function at 0x10032eff
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc6bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe3c
push edi
cmp dword [0x100fa6ac], 0
je 0x10032f2c
jmp 0x1003322c
mov dword [0x100fa6ac], 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], 0x100fa6b0
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.1002c158
push eax
push 0x100e1fc0
lea eax, [ebp - 0xe2c]
push eax
call fcn.1004f648
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 0x100c0788
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0xc24], eax
cmp dword [ebp - 0xc24], 0
jbe 0x10033045
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [ebp + edx*2 - 0xc16]
test eax, eax
jne 0x10033045
push 0x400
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0xc14]
push edx
call fcn.100821c0
add esp, 0xc
mov dword [ebp - 0xc1c], eax
mov dword [ebp - 0x414], 0x20019
cmp dword [ebp - 0xc1c], 0
jne 0x1003312f
lea ecx, [ebp - 0xe38]
call fcn.10048730
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x414]
push eax
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push 0x80000002
lea ecx, [ebp - 0xe38]
call fcn.100488a0
test eax, eax
je 0x10033112
lea ecx, [ebp - 0xc1c]
push ecx
push 0x100c081c
lea ecx, [ebp - 0xe38]
call fcn.10048cc0
mov dword [ebp - 0xc18], eax
cmp dword [ebp - 0xc18], 0
je 0x10033112
cmp dword [ebp - 0xc1c], 0x400
jae 0x100330e3
mov edx, dword [ebp - 0xc1c]
push edx
mov eax, dword [ebp - 0xc18]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.1004eeb0
add esp, 0xc
jmp 0x100330ed
mov dword [ebp - 0xc1c], 0
mov edx, dword [ebp - 0xc18]
mov dword [ebp - 0xe48], edx
mov eax, dword [ebp - 0xe48]
push eax
call fcn.1004e2f6
add esp, 4
mov dword [ebp - 0xc18], 0
lea ecx, [ebp - 0xe38]
call fcn.100488f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe38]
call fcn.10048820
cmp dword [ebp - 0xc1c], 0
jne 0x100331b2
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
push 0
lea edx, [ebp - 0xc14]
push edx
call fcn.1004e290
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc14]
push ecx
mov edx, dword [ebp - 0xe30]
push edx
push 0x100c081c
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 0x100331b2
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0xc16]
test ecx, ecx
jne 0x100331b2
push 0x400
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0xc14]
push eax
call fcn.100821c0
add esp, 0xc
mov dword [ebp - 0xc1c], eax
cmp dword [ebp - 0xc1c], 0
je 0x1003322c
cmp dword [ebp - 0xc1c], 4
jbe 0x1003322c
lea ecx, [ebp - 0x410]
mov dword [ebp - 0xe3c], ecx
cmp dword [ebp - 0xe3c], 0
je 0x1003322c
mov edx, dword [ebp - 0xe3c]
cmp dword [edx], 1
je 0x1003322c
mov eax, dword [ebp - 0xe3c]
add eax, 4
mov dword [ebp - 0xe40], eax
mov ecx, dword [ebp - 0xe40]
call fcn.10033b90
mov dword [ebp - 0xe44], eax
cmp dword [ebp - 0xe44], 0
je 0x1003322c
mov ecx, dword [ebp - 0xc1c]
sub ecx, 4
cmp dword [ebp - 0xe44], ecx
ja 0x1003322c
mov edx, dword [ebp - 0xe40]
mov eax, dword [edx + 4]
mov dword [0x100fa6a8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret