Function at 0x48c630
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c9d1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov edi, dword [eax]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48c954
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x48c954
push 0x72
lea ecx, [ebp + 8]
call fcn.00454430
mov byte [ebp - 4], 1
lea ecx, [edi + 0x34]
push dword [eax]
push dword [ebx]
push str.__s_:__s...
push ecx
call fcn.00453b60
mov edx, dword [ebp + 8]
add esp, 0x10
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c6db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x48c968
mov eax, dword [ecx]
push dword [ebp - 0x18]
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
call fcn.004d03a0
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.004d0140
cmp byte [0x5c2182], 0
jne 0x48c75a
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x48c753
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c2182
sub esp, 0xc
push 0xa3
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUI_agent_install_action.cpp
push 0x20
call fcn.004d0210
jmp 0x48c755
xor eax, eax
mov dword [0x5c48a8], eax
mov ecx, dword [ebp - 0x18]
call fcn.004d0150
mov ecx, dword [0x5c48a8]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c48a8]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 8]
call fcn.0044f250
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
push dword [eax]
call fcn.004523d0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 6
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x48c7c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
push dword [eax]
push 0x5817d0
push dword [0x5c48a8]
call dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
add esp, 0xc
add edx, 0xfffffff0
mov byte [ebp - 4], 7
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c7fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [0x5c48a8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c48a8]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
push 0x134
lea ecx, [ebp - 0x1c]
call fcn.00454430
mov dword [ebp - 0x24], eax
push 0x81
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.00454430
push ebx
mov byte [ebp - 4], 9
push dword [ebp - 0x24]
push eax
push ecx
mov ecx, edi
call fcn.00496460
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c86d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c88b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov edx, dword [ebp + 8]
call fcn.0044f250
mov ebx, eax
push 0x81
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call fcn.00454430
push ebx
push eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.00496680
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c8d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c8f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
cmp dword [ebp + 8], 0xb7
je 0x48c954
push 0x81
lea ecx, [ebp - 0x18]
mov dword [edi + 0x2c], 3
call fcn.00454430
push eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.004968a0
mov eax, dword [ebp - 0x18]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0x11
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x48c940
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004d1af6
call fcn.004d03a0
mov esi, eax
mov ecx, esi
call fcn.004d0140
cmp byte [0x5c216c], 0
jne 0x48c9cc
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x48c9c1
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c216c
sub esp, 0xc
push 0xb2
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUI_agent_install_action.cpp
push 0x50
call fcn.004d0210
jmp 0x48c9c3
xor eax, eax
mov byte [ebp - 4], 0x12
mov dword [0x5c4768], eax
mov ecx, esi
call fcn.004d0150
mov ecx, dword [0x5c4768]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4768]
push str.Exception
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x5c4768]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4768]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
push 0
push 0
call fcn.004edba4
int3