Function at 0x44f230
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x557e57
push eax
mov eax, dword [0x5b1ef8]
mov dword fs:[0], esp
sub esp, 0x428
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x44f2d4
mov ecx, dword [0x5b1df0]
mov eax, 1
cmp ecx, ebx
mov dword [0x5b1ef8], eax
jne 0x44f282
push 0x104
push 0x5b1df4
mov dword [0x5b1df0], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x5b1df4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x5b1efc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Ocular
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x5b1efc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5b1efc
lea ecx, [esp + 0x14]
call fcn.0043a5d0
push 0x58c8f8
lea ecx, [esp + 0x14]
mov dword [esp + 0x440], ebx
call fcn.0043bb90
push str.OAgent.ini
lea ecx, [esp + 0x10]
call fcn.0043a5d0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x440], 1
call fcn.0043bbf0
lea ecx, [esp + 0xc]
mov byte [esp + 0x43c], bl
call fcn.0043af50
mov ecx, dword [0x568e0c]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.005251ac
mov edx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x18]
push edx
push eax
push 0x58c880
push str.AgentConfig
mov byte [esp + 0x450], 3
call fcn.004af0d0
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp dword [eax - 8], ebx
je 0x44f383
lea ecx, [esp + 0x20]
push ebx
push ecx
push eax
call fcn.0049c380
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00484310
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x448], 4
call fcn.00484480
test eax, eax
je 0x44f423
mov eax, dword [esp + 0x28]
push ebp
cmp eax, ebx
jne 0x44f419
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
push 0x58c768
mov dword [esp + 0x18], ebx
call fcn.004848a0
mov ebp, eax
cmp ebp, ebx
je 0x44f419
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x2c]
call fcn.0052520c
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x44f404
mov ecx, dword [esp + 0x10]
mov esi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x44f410
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x2c]
call fcn.0052520c
push ebp
call fcn.00529d00
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004844d0
pop ebp
mov edx, dword [esp + 0x28]
cmp edx, ebx
jne 0x44f486
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x34]
push 0x400
push eax
push ebx
push 0x58c768
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
cmp eax, ebx
jbe 0x44f47a
cmp byte [esp + 0x433], bl
jne 0x44f47a
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.0049c2d0
add esp, 0xc
mov edx, dword [esp + 0x28]
cmp edx, ebx
je 0x44f511
cmp edx, 4
jbe 0x44f511
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x44f511
cmp dword [eax], 1
je 0x44f511
add eax, 4
xor ecx, ecx
mov cx, word [eax + 0x18]
lea ecx, [ecx + ecx + 0x22]
cmp ecx, ebx
je 0x44f511
add edx, 0xfffffffc
cmp ecx, edx
ja 0x44f511
cmp eax, ebx
je 0x44f511
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x444]
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 3
mov dword [eax], edx
call fcn.00484400
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.005251df
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], bl
call fcn.0043af50
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0043af50
mov eax, 1
jmp 0x44f559
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 3
call fcn.00484400
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.005251df
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], bl
call fcn.0043af50
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0043af50
xor eax, eax
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x434
ret