Function at 0x340a041f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x34140e5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe3c
push edi
cmp dword [0x341ac4cc], 0
je 0x340a044c
jmp 0x340a074c
mov dword [0x341ac4cc], 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], 0x341ac4d0
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.34099678
push eax
push 0x34191d78
lea eax, [ebp - 0xe2c]
push eax
call fcn.340be4d8
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 0x3414692c
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0xc24], eax
cmp dword [ebp - 0xc24], 0
jbe 0x340a0565
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [ebp + edx*2 - 0xc16]
test eax, eax
jne 0x340a0565
push 0x400
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0xc14]
push edx
call fcn.34100c50
add esp, 0xc
mov dword [ebp - 0xc1c], eax
mov dword [ebp - 0x414], 0x20019
cmp dword [ebp - 0xc1c], 0
jne 0x340a064f
lea ecx, [ebp - 0xe38]
call fcn.340b5db0
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.340b5f20
test eax, eax
je 0x340a0632
lea ecx, [ebp - 0xc1c]
push ecx
push 0x341469c0
lea ecx, [ebp - 0xe38]
call fcn.340b6340
mov dword [ebp - 0xc18], eax
cmp dword [ebp - 0xc18], 0
je 0x340a0632
cmp dword [ebp - 0xc1c], 0x400
jae 0x340a0603
mov edx, dword [ebp - 0xc1c]
push edx
mov eax, dword [ebp - 0xc18]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.340be130
add esp, 0xc
jmp 0x340a060d
mov dword [ebp - 0xc1c], 0
mov edx, dword [ebp - 0xc18]
mov dword [ebp - 0xe48], edx
mov eax, dword [ebp - 0xe48]
push eax
call fcn.340bd446
add esp, 4
mov dword [ebp - 0xc18], 0
lea ecx, [ebp - 0xe38]
call fcn.340b5f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe38]
call fcn.340b5ea0
cmp dword [ebp - 0xc1c], 0
jne 0x340a06d2
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
push 0
lea edx, [ebp - 0xc14]
push edx
call fcn.340bd3e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc14]
push ecx
mov edx, dword [ebp - 0xe30]
push edx
push 0x341469c0
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 0x340a06d2
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0xc16]
test ecx, ecx
jne 0x340a06d2
push 0x400
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0xc14]
push eax
call fcn.34100c50
add esp, 0xc
mov dword [ebp - 0xc1c], eax
cmp dword [ebp - 0xc1c], 0
je 0x340a074c
cmp dword [ebp - 0xc1c], 4
jbe 0x340a074c
lea ecx, [ebp - 0x410]
mov dword [ebp - 0xe3c], ecx
cmp dword [ebp - 0xe3c], 0
je 0x340a074c
mov edx, dword [ebp - 0xe3c]
cmp dword [edx], 1
je 0x340a074c
mov eax, dword [ebp - 0xe3c]
add eax, 4
mov dword [ebp - 0xe40], eax
mov ecx, dword [ebp - 0xe40]
call fcn.340a10b0
mov dword [ebp - 0xe44], eax
cmp dword [ebp - 0xe44], 0
je 0x340a074c
mov ecx, dword [ebp - 0xc1c]
sub ecx, 4
cmp dword [ebp - 0xe44], ecx
ja 0x340a074c
mov edx, dword [ebp - 0xe40]
mov eax, dword [edx + 4]
mov dword [0x341ac4c8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret