Function at 0x10037d40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c51b9
mov eax, dword fs:[0]
push eax
sub esp, 0x6f0
mov eax, dword [0x1022b584]
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 edi, ecx
mov edx, dword [edi + 0x48]
cmp edx, 0x80004001
je 0x10037d87
xor eax, eax
test edx, edx
sete al
jmp 0x1003825c
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x10038278
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x660], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1022f158]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1018d4b0
lea eax, [ebp - 0x664]
push 1
push eax
call fcn.1016f450
add esp, 0x14
lea ecx, [ebp - 0x659]
mov byte [ebp - 4], 1
call fcn.10036120
mov ecx, eax
test ecx, ecx
je 0x10038282
mov eax, dword [ebp - 0x664]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10037e5a
test dx, dx
je 0x10037e56
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10037e5a
add eax, 4
add ecx, 4
test dx, dx
jne 0x10037e34
xor eax, eax
jmp 0x10037e5f
sbb eax, eax
or eax, 1
lea ecx, [ebp - 0x659]
test eax, eax
jne 0x10037e70
call fcn.10036040
jmp 0x10037e75
call fcn.10036200
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x420]
push eax
call ebx
test eax, eax
jne 0x10038007
push 0x208
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x218]
push str.7z.dll
push eax
lea eax, [ebp - 0x628]
push eax
call esi
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10037ed6
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x660]
call fcn.1000f6e0
mov esi, dword [ebp - 0x660]
push esi
call ebx
test eax, eax
jne 0x10038038
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003820a
push 0x1f
push str.CommonDownloadOsThreadPool.cpp
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 2
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
call fcn.1000cf00
mov byte [ebp - 4], 3
call fcn.100a97a0
mov ebx, eax
lea ecx, [ebp - 0x6fc]
push 0xcd
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.10007f90
mov edi, eax
push str.error_find_7z_
push edi
mov byte [ebp - 4], 4
call fcn.10008dd0
test esi, esi
mov ecx, 0x101d2100
cmovne ecx, esi
push ecx
push edi
call fcn.1000fad0
push 0x101d6a48
push edi
call fcn.10008dd0
mov eax, dword [ebx]
add esp, 0x18
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x6fc]
call fcn.10008e90
lea ecx, [ebp - 0x640]
call fcn.10007310
lea ecx, [ebp - 0x658]
call fcn.10007310
xor ebx, ebx
jmp 0x1003821a
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10038010
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x660]
call fcn.1000f6e0
mov esi, dword [ebp - 0x660]
push esi
call fcn.1015b3b0
add esp, 4
test eax, eax
jne 0x100380fe
mov dword [edi + 0x48], 0x80004005
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003820a
push 0x1f
push str.CommonDownloadOsThreadPool.cpp
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 5
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], 0
call fcn.1000cf00
mov byte [ebp - 4], 6
call fcn.100a97a0
mov ebx, eax
lea ecx, [ebp - 0x6fc]
push 0xd6
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.10007f90
mov edi, eax
mov byte [ebp - 4], 7
push 0x101d6a4c
jmp 0x100381bc
push esi
call fcn.10186830
test eax, eax
jne 0x1003820e
mov dword [edi + 0x48], 0x80004005
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003820a
push 0x1f
push str.CommonDownloadOsThreadPool.cpp
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 8
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], 0
call fcn.1000cf00
mov byte [ebp - 4], 9
call fcn.100a97a0
mov ebx, eax
lea ecx, [ebp - 0x6fc]
push 0xdc
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.10007f90
mov edi, eax
mov byte [ebp - 4], 0xa
push str.error_load_dll_
push edi
call fcn.1000fad0
test esi, esi
mov ecx, 0x101d2100
cmovne ecx, esi
push ecx
push edi
call fcn.1000fad0
push 0x101d6a48
push edi
call fcn.10008dd0
mov eax, dword [ebx]
add esp, 0x18
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x6fc]
call fcn.10008e90
lea ecx, [ebp - 0x658]
call fcn.10007310
lea ecx, [ebp - 0x640]
call fcn.10007310
xor ebx, ebx
jmp 0x1003821a
mov dword [edi + 0x48], 0
mov ebx, 1
mov edx, dword [ebp - 0x664]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003823e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1003825a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.101799ce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009b10
push 0x80004005
call fcn.10009b10
int3