Function at 0x10046480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c92c1
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x10264190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x484], ecx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x480]
call fcn.10004dd0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100464f4
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x480]
call fcn.10004f30
jmp 0x10046550
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10195c90
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 3
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x480]
call sym.URDHelp_x86.dll_public:_void___thiscall_CURDHelp::constructor_void_
mov ecx, eax
call fcn.10018de0
push 0x10227df4
lea ecx, [ebp - 0x480]
call fcn.10004f60
push 0
push 0x10227e0c
push 0x10227e10
lea ecx, [ebp + 0x68]
call fcn.10005cd0
push 0x10227e14
lea ecx, [ebp - 0x480]
call fcn.100057b0
lea ecx, [ebp + 0x68]
call sym.URDHelp_x86.dll_public:_void___thiscall_CURDHelp::constructor_void_
mov ecx, eax
call fcn.10039750
push eax
lea ecx, [ebp + 0xc8]
call sym.URDHelp_x86.dll_public:_void___thiscall_CURDHelp::constructor_void_
mov ecx, eax
call fcn.10039750
push eax
lea ecx, [ebp + 8]
call sym.URDHelp_x86.dll_public:_void___thiscall_CURDHelp::constructor_void_
mov ecx, eax
call fcn.10039750
push eax
push 0x10227e18
lea eax, [ebp - 0x504]
push eax
push 0x10270344
call fcn.10017840
add esp, 0x18
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
mov dword [ebp - 0x498], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x498]
push edx
lea ecx, [ebp - 0x480]
call fcn.10005160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x504]
call fcn.10004e60
lea eax, [ebp - 0x480]
push eax
mov ecx, 0x10270344
call fcn.10017d20
lea ecx, [ebp - 0x480]
push ecx
mov ecx, dword [ebp - 0x484]
add ecx, 0x1d8
call fcn.10005130
push str.d:mycodewin_agent_toolwin_urdurdurdcommon._UsbListMag.cpp:CUsbListMag::CreateUsbAutoConnectLogPath__:Line_50
push 0
push 1
lea edx, [ebp - 0x4a4]
push edx
call fcn.10009d30
mov ecx, dword [eax]
mov dword [ebp - 0x490], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x48c], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x488], eax
push 0
mov ecx, dword [ebp - 0x484]
add ecx, 0x1d8
call fcn.100053a0
push eax
push str._tUsbAutoConnectPath__s._n
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0x490]
mov dword [ecx], edx
mov eax, dword [ebp - 0x48c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x488]
mov dword [ecx + 8], edx
call fcn.10008d70
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x480]
call fcn.10004e60
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.10004e60
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.10004e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc8]
call fcn.10004e60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1019110d
mov esp, ebp
pop ebp
ret 0x120