Function at 0x401ca0
Capabilities:
Create directory
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413c2d
mov eax, dword fs:[0]
push eax
sub esp, 0x5a8
mov eax, dword [0x41c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 7
mov word [ebp - 0x46c], cx
mov edi, dword [ebp + 8]
lea esi, [ecx + 1]
mov dword [ebp - 4], ecx
cmp edi, esi
jle 0x401d29
push dword [eax + esi*4]
lea ecx, [ebp - 0x46c]
call fcn.00402580
push 0x41990c
lea ecx, [ebp - 0x46c]
call fcn.00402580
mov eax, dword [ebp - 0x424]
inc esi
cmp esi, edi
jl 0x401d00
xor eax, eax
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 7
mov word [ebp - 0x454], ax
push 0x208
push eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
call fcn.00404120
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00404120
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push 0
push str.IIF3
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov dword [ebp - 0x4e0], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x4dc], 7
mov word [ebp - 0x4f0], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401de1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00401b40
movups xmm0, xmmword [ebp - 0x4f0]
xor eax, eax
lea ecx, [ebp - 0x508]
mov word [ebp - 0x4f0], ax
lea eax, [ebp - 0x454]
movups xmmword [ebp - 0x454], xmm0
push eax
movq xmm0, qword [ebp - 0x4e0]
movq qword [ebp - 0x444], xmm0
mov dword [ebp - 0x4e0], 0
mov dword [ebp - 0x4dc], 7
call fcn.004024a0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x508]
cmp dword [ebp - 0x4f4], 8
cmovae edx, dword [ebp - 0x508]
sub esp, 8
call fcn.004013a0
add esp, 8
test eax, eax
jne 0x402340
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4f4]
cmp edx, 8
jb 0x401ebf
mov ecx, dword [ebp - 0x508]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401eb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402369
push edx
push ecx
call fcn.004030ba
add esp, 8
xor eax, eax
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 7
mov word [ebp - 0x508], ax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
push ecx
lea edx, [ebp - 0x454]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x550]
call fcn.00402600
push 0x41c880
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x538]
call fcn.00402770
add esp, 8
push 0x41990c
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00402580
mov dword [ebp - 0x4c8], 0
xor ecx, ecx
mov dword [ebp - 0x4c4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4d8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x4d8]
lea ecx, [ebp - 0x520]
call fcn.00402770
lea ecx, [ebp - 0x43c]
add esp, 4
cmp ecx, eax
je 0x401fc3
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [ebp - 0x43c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x42c], xmm0
mov word [eax], cx
mov edx, dword [ebp - 0x50c]
cmp edx, 8
jb 0x402003
mov ecx, dword [ebp - 0x520]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ff9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40236e
push edx
push ecx
call fcn.004030ba
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4c4]
mov dword [ebp - 0x510], 0
mov dword [ebp - 0x50c], 7
mov word [ebp - 0x520], ax
cmp edx, 8
jb 0x402064
mov ecx, dword [ebp - 0x4d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40205a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402373
push edx
push ecx
call fcn.004030ba
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x524]
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x4c4], 7
mov word [ebp - 0x4d8], ax
cmp edx, 8
jb 0x4020c5
mov ecx, dword [ebp - 0x538]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4020bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402378
push edx
push ecx
call fcn.004030ba
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x53c]
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x524], 7
mov word [ebp - 0x538], ax
cmp edx, 8
jb 0x402126
mov ecx, dword [ebp - 0x550]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40211c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40237d
push edx
push ecx
call fcn.004030ba
add esp, 8
xor eax, eax
mov dword [ebp - 0x540], 0
mov word [ebp - 0x550], ax
lea ecx, [ebp - 0x568]
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x53c], 7
push eax
call fcn.004024a0
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x4b0]
mov ecx, 0x44
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402170
mov dword [ebp - 0x4b0], 0x44
lea eax, [ebp - 0x4c0]
mov ecx, 0x10
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402190
cmp dword [ebp - 0x554], 8
lea ecx, [ebp - 0x4c0]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x568]
cmovae eax, dword [ebp - 0x568]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4021ea
push eax
push str.ERROR
push str.Run_installer_failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x402221
push 0xffffffffffffffff
push dword [ebp - 0x4c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x4c0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x4c0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4bc]
call esi
mov edx, dword [ebp - 0x554]
mov esi, dword [ebp - 0x424]
cmp edx, 8
jb 0x402267
mov ecx, dword [ebp - 0x568]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40225d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402382
push edx
push ecx
call fcn.004030ba
add esp, 8
mov edx, dword [ebp - 0x428]
cmp edx, 8
jb 0x4022a7
mov ecx, dword [ebp - 0x43c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40229d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402387
push edx
push ecx
call fcn.004030ba
add esp, 8
mov edx, dword [ebp - 0x440]
cmp edx, 8
jb 0x4022e7
mov ecx, dword [ebp - 0x454]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40238c
push edx
push ecx
call fcn.004030ba
add esp, 8
mov edx, dword [ebp - 0x458]
cmp edx, 8
jb 0x402323
mov ecx, dword [ebp - 0x46c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402319
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402391
push edx
push ecx
call fcn.004030ba
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402e7e
mov esp, ebp
pop ebp
ret
push 0x3a
push str.c:jenkinsworkspaceinstaller_ws_srccommonwrapperwrapper.cpp
push 0x4197d4
push eax
lea ecx, [ebp - 0x5b4]
call fcn.00401650
push 0x41a848
lea eax, [ebp - 0x5b4]
push eax
call fcn.00403e85
call fcn.00406464
call fcn.00406464
call fcn.00406464
call fcn.00406464
call fcn.00406464
call fcn.00406464
call fcn.00406464
call fcn.00406464
call fcn.00406464
int3