Function at 0x100404b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b7820
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x102258ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
movzx eax, byte [ebp + 0x18]
xor eax, 1
mov dword [ebp - 4], 0
inc eax
shl eax, 8
or eax, 0x20019
push eax
push ebx
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.100312a0
mov edi, dword [ebp - 0x2a8]
mov dword [ebp - 0x294], eax
test eax, eax
je 0x10040656
call fcn.100bfc20
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1004064f
push 0x48
push str.d:jenkins.jenkinsworkspacemgamezipperzipper_tpi_3commonutils.cpp
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], al
call fcn.1001a260
push 3
push 0x101d0d58
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
call fcn.1001a260
push 0x25d
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x340]
call fcn.100174f0
mov esi, eax
push 0x101d1fe8
push esi
mov byte [ebp - 4], 3
call fcn.10016760
test ebx, ebx
mov ecx, 0x101d0c4c
cmovne ecx, ebx
push ecx
push esi
call fcn.10016760
push str._Failed:
push esi
call fcn.10016760
add esp, 0x18
mov ecx, esi
push dword [ebp - 0x294]
call fcn.10033140
call fcn.100bfc20
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x340]
call fcn.10018510
lea ecx, [ebp - 0x278]
call fcn.10017d90
lea ecx, [ebp - 0x290]
call fcn.10017d90
xor bl, bl
jmp 0x10040a74
mov edx, dword [ebp - 0x298]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040680
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x278]
call fcn.1001e830
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x101d0f5c
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
call fcn.1001e830
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x260]
push edi
push eax
call fcn.10040af0
add esp, 0x10
lea ecx, [ebp - 0x290]
call fcn.10017de0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 8
call fcn.10017de0
call fcn.100bfc20
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x10040812
push 0x48
push str.d:jenkins.jenkinsworkspacemgamezipperzipper_tpi_3commonutils.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.1001a260
push 3
push 0x101d0d58
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 9
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1001a260
push 0x262
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x340]
call fcn.100174f0
mov esi, eax
push str.valu_
push esi
mov byte [ebp - 4], 0xb
call fcn.10016760
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x260]
mov eax, 0x101d0c4c
cmovae ecx, dword [ebp - 0x260]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.10016760
add esp, 0x10
call fcn.100bfc20
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x340]
call fcn.10018510
lea ecx, [ebp - 0x230]
call fcn.10017d90
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 8
call fcn.10017d90
mov esi, dword [ebp - 0x29c]
cmp dword [ebp - 0x250], 0
jne 0x10040822
xor bl, bl
jmp 0x10040a69
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10187ab0
add esp, 0xc
lea eax, [ebp - 0x260]
test esi, esi
je 0x1004093e
cmp dword [ebp - 0x24c], 8
push esi
cmovae eax, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
jne 0x10040a60
call fcn.100bfc20
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x10040a5e
push 0x48
push str.d:jenkins.jenkinsworkspacemgamezipperzipper_tpi_3commonutils.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1001a260
push 3
push 0x101d0d58
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1001a260
push 0x26e
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x340]
call fcn.100174f0
mov esi, eax
push 0x101d2020
push esi
mov byte [ebp - 4], 0xe
call fcn.10016760
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10016760
push str._err:
push esi
call fcn.10016760
add esp, 0x18
jmp 0x10040a22
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
jne 0x10040a60
call fcn.100bfc20
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x10040a5e
push 0x48
push str.d:jenkins.jenkinsworkspacemgamezipperzipper_tpi_3commonutils.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1001a260
push 3
push 0x101d0d58
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1001a260
push 0x277
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x340]
call fcn.100174f0
mov esi, eax
push 0x101d2020
push esi
mov byte [ebp - 4], 0x11
call fcn.10016760
add esp, 8
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.10031500
mov esi, eax
push str._err:
push esi
call fcn.10016760
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10020070
call fcn.100bfc20
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x340]
call fcn.10018510
lea ecx, [ebp - 0x248]
call fcn.10017d90
lea ecx, [ebp - 0x230]
call fcn.10017d90
test edi, edi
mov edi, dword [ebp - 0x2a8]
setne bl
lea ecx, [ebp - 0x260]
call fcn.10017de0
test edi, edi
je 0x10040a7f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101454ca
mov esp, ebp
pop ebp
ret