Function at 0x4630d0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x621987
push eax
mov eax, dword [0x6b22f8]
mov dword fs:[0], esp
sub esp, 0x428
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x463174
mov ecx, dword [0x6b21f0]
mov eax, 1
cmp ecx, ebx
mov dword [0x6b22f8], eax
jne 0x463122
push 0x104
push 0x6b21f4
mov dword [0x6b21f0], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x6b21f4
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, 0x6b22fc
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, 0x6810c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x6b22fc
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 0x6b22fc
lea ecx, [esp + 0x14]
call fcn.0044e470
push 0x681ba4
lea ecx, [esp + 0x14]
mov dword [esp + 0x440], ebx
call fcn.0044fa30
push str.OAgent.ini
lea ecx, [esp + 0x10]
call fcn.0044e470
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x440], 1
call fcn.0044fa90
lea ecx, [esp + 0xc]
mov byte [esp + 0x43c], bl
call fcn.0044edf0
mov ecx, dword [0x63f2ec]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.005ec36e
mov edx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x18]
push edx
push eax
push 0x681b3c
push str.AgentConfig
mov byte [esp + 0x450], 3
call fcn.005335a0
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp dword [eax - 8], ebx
je 0x463223
lea ecx, [esp + 0x20]
push ebx
push ecx
push eax
call fcn.005205d0
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00477b30
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.00477ca0
test eax, eax
je 0x4632c3
mov eax, dword [esp + 0x28]
push ebp
cmp eax, ebx
jne 0x4632b9
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
push 0x681a24
mov dword [esp + 0x18], ebx
call fcn.004780c0
mov ebp, eax
cmp ebp, ebx
je 0x4632b9
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x2c]
call fcn.005ec3ce
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x4632a4
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 0x4632b0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x2c]
call fcn.005ec3ce
push ebp
call fcn.005f1804
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00477cf0
pop ebp
mov edx, dword [esp + 0x28]
cmp edx, ebx
jne 0x463326
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 0x681a24
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
cmp eax, ebx
jbe 0x46331a
cmp byte [esp + 0x433], bl
jne 0x46331a
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.00520520
add esp, 0xc
mov edx, dword [esp + 0x28]
cmp edx, ebx
je 0x4633b1
cmp edx, 4
jbe 0x4633b1
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4633b1
cmp dword [eax], 1
je 0x4633b1
add eax, 4
xor ecx, ecx
mov cx, word [eax + 0x18]
lea ecx, [ecx + ecx + 0x22]
cmp ecx, ebx
je 0x4633b1
add edx, 0xfffffffc
cmp ecx, edx
ja 0x4633b1
cmp eax, ebx
je 0x4633b1
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.00477c20
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.005ec3a1
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], bl
call fcn.0044edf0
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0044edf0
mov eax, 1
jmp 0x4633f9
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 3
call fcn.00477c20
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.005ec3a1
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], bl
call fcn.0044edf0
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0044edf0
xor eax, eax
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x434
ret