Function at 0x402f35
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x470008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x23c], eax
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00430b10
xor eax, eax
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x224], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x228], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
or edi, 0xffffffff
test esi, esi
je 0x402fc9
cmp word [esi], cx
je 0x402fc9
lea eax, [ebp - 0x220]
push eax
push ebx
push esi
jmp 0x403021
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x403012
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x402ff6
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x402ffd
mov esi, 0x80004005
push esi
push 0x284
push str.c:_agent_work18_swix_srclibsdutilpathutil.cpp
call fcn.00403953
jmp 0x4031a8
lea eax, [ebp - 0x220]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00402ece
mov esi, eax
test esi, esi
js 0x4031a8
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x220]
call fcn.004035bb
test eax, eax
jne 0x40305c
push eax
push dword [ebp - 0x22c]
call fcn.0040420a
mov esi, eax
test esi, esi
js 0x4031a8
cmp dword [ebp - 0x230], 0
jne 0x40306f
mov dword [ebp - 0x230], 0x4508e4
mov eax, dword [ebp - 0x228]
xor ebx, ebx
inc eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp - 0x234]
push 0x2e
pop eax
cmp ax, word [ecx]
mov eax, 0x4508e4
je 0x4030a3
mov eax, 0x450bc0
push ecx
push eax
push dword [ebp - 0x230]
movzx eax, word [ebp - 0x210]
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x224]
push str._ls__04u_02u_02u_02u_02u_02u_ls_ls_ls
push eax
call fcn.00402099
mov esi, eax
add esp, 0x30
test esi, esi
js 0x40319c
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40316f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x50
je 0x403136
cmp esi, 5
jne 0x403150
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x228]
cmp eax, 0xa
jae 0x403156
xor ebx, ebx
xor esi, esi
inc ebx
jmp 0x403156
mov eax, dword [ebp - 0x228]
test esi, esi
jle 0x403165
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4031a8
test ebx, ebx
jne 0x403075
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x40318d
push 0
push dword [ebp - 0x224]
push eax
call fcn.00402315
mov esi, eax
test esi, esi
js 0x40319c
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x40319c
mov dword [eax], edi
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x4031a8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x224], 0
je 0x4031bc
push dword [ebp - 0x224]
call fcn.004027da
cmp dword [ebp - 0x22c], 0
je 0x4031d0
push dword [ebp - 0x22c]
call fcn.004027da
cmp dword [ebp - 0x220], 0
je 0x4031e4
push dword [ebp - 0x220]
call fcn.004027da
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f1b3
leave
ret 0x18