Function at 0x10037960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011fa28
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
call fcn.10022690
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x100379ae
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10024750
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add edi, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100379f4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x10037a6d
push dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push str.LoadBindingRedirects_SxS_:_assembly_policy_file_s
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push str.General
call fcn.10023fc0
push 1
mov byte [ebp - 4], 1
call fcn.100481f0
add esp, 0x10
mov dword [ebp - 0x28], 0
lea ebx, [ebp - 0x28]
push 1
push ecx
mov ecx, dword [ebp + 8]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x24]
mov edx, ebx
mov dword [edi], eax
call fcn.10045880
add esp, 8
cmp eax, 0xffffffff
je 0x10037a6d
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10037ac3
push dword [ebp - 0x24]
call fcn.10103713
add esp, 4
or ecx, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10037a8b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10037aaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
push eax
call fcn.10045620
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.100244b0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x28]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10037b02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
jl 0x10038325
push str._dependentAssembly_
push esi
call fcn.10103a8d
add esp, 8
test eax, eax
je 0x10038325
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x10038325
add eax, 0x13
lea ecx, [ebp - 0x1c]
push eax
push 0
call fcn.10026580
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
jl 0x10038325
push str.__dependentAssembly_
push esi
call fcn.10103a8d
mov edi, eax
add esp, 8
test edi, edi
je 0x10037b6d
sub edi, esi
sar edi, 1
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
jne 0x10037ba0
cmp dword [esi - 0xc], 0
jl 0x10038325
push 0x1013ba84
push esi
call fcn.10103a8d
mov edi, eax
add esp, 8
test edi, edi
je 0x10037b05
sub edi, esi
sar edi, 1
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
je 0x10037b05
nop
push 0x1012ec60
lea ecx, [ebp - 0x18]
call fcn.10023fc0
push 0x1012ec60
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.10023fc0
push edi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.100267b0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x24]
cmp dword [esi - 0xc], 0
jl 0x100382b0
push str._bindingRedirect
push esi
call fcn.10103a8d
mov edi, eax
add esp, 8
test edi, edi
je 0x100382b0
sub edi, esi
sar edi, 1
cmp edi, 0xffffffff
je 0x100382b0
lea eax, [edi + 0x11]
push eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.10026580
lea eax, [edi + 0x10]
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.10026580
push dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.LoadBindingRedirects_SxS_:_bindingRedirect_found_in_Policy_file__s
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 7
push str.General
call fcn.10023fc0
push 1
mov byte [ebp - 4], 6
call fcn.100481f0
add esp, 0x10
lea ecx, [ebp - 0x14]
push 0
push 0x1012ec60
call fcn.10024680
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
add ecx, 0xfffffff0
add esi, 0xfffffff0
cmp ecx, esi
je 0x10037cb6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x10037ca7
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10037ca7
call fcn.10024750
mov dword [ebp - 0x30], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x10037c9f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x10037cb6
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push dword [eax - 0xc]
push eax
call fcn.10024680
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
je 0x10037ccf
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x10038190
cmp dword [esi - 0xc], 0
jle 0x10038190
push 0x3d
push esi
call fcn.101033a1
mov edi, eax
add esp, 8
test edi, edi
je 0x10038190
sub edi, esi
sar edi, 1
cmp edi, 0xffffffff
je 0x10038190
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
call fcn.100267b0
lea eax, [edi + 1]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
call fcn.10039ac0
mov byte [ebp - 4], 9
push str.__t_r_n_
push dword [ebp - 0x10]
call fcn.1010538c
add esp, 8
test eax, eax
je 0x10037e25
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x10037e25
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
call fcn.100267b0
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea esi, [edx - 0x10]
cmp esi, edi
je 0x10037e05
cmp dword [edi + 0xc], 0
jl 0x10037df9
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x10037df9
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x10037d9b
cmp ecx, dword [esi]
jne 0x10037d9b
mov ebx, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10037dd7
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x10038320
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.10103d20
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10037dee
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x10], eax
jmp 0x10037e05
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.10024680
mov byte [ebp - 4], 9
mov ecx, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10037e25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp - 0x10]
inc ecx
mov eax, dword [eax - 0xc]
add eax, ecx
lea ecx, [ebp - 0x24]
push eax
push 0
call fcn.10026580
push str.___t__r_n
push str.___t__r_n
lea ecx, [ebp - 0x20]
call fcn.10024380
mov ecx, eax
call fcn.100243f0
mov ebx, dword [ebp - 0x20]
add ebx, 0xfffffff0
mov edx, dword [eax]
lea esi, [edx - 0x10]
cmp esi, ebx
je 0x10037f03
cmp dword [ebx + 0xc], 0
jl 0x10037ef7
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x10037ef7
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x10037e9c
cmp ecx, dword [esi]
jne 0x10037e9c
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10037ed8
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x10038320
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.10103d20
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10037eef
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 0x20], eax
jmp 0x10037f03
push dword [edx - 0xc]
lea ecx, [ebp - 0x20]
push edx
call fcn.10024680
push str.___t__r_n
push str.___t__r_n
lea ecx, [ebp - 0x10]
call fcn.10024380
mov ecx, eax
call fcn.100243f0
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
lea edi, [ecx - 0x10]
lea esi, [eax - 0x10]
cmp esi, edi
je 0x10037fca
cmp dword [edi + 0xc], 0
jl 0x10037fbb
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x10037fbb
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x10037f60
cmp ecx, dword [esi]
jne 0x10037f60
mov ebx, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10037f9c
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x10038320
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.10103d20
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10037fb3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x10], ecx
jmp 0x10037fca
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.10024680
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov esi, str.oldVersion
mov edx, eax
mov di, word [edx]
cmp di, word [esi]
jne 0x10037ffa
test di, di
je 0x10037ff6
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x10037ffa
add edx, 4
add esi, 4
test di, di
jne 0x10037fd4
xor edx, edx
jmp 0x10037fff
sbb edx, edx
or edx, 1
test edx, edx
sete dl
test dl, dl
je 0x100380be
mov edi, dword [ebp - 0x18]
lea esi, [ecx - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x10038147
cmp dword [edi + 0xc], 0
jl 0x100380b2
mov edx, dword [esi]
cmp edx, dword [edi]
jne 0x100380b2
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x10038054
cmp ecx, dword [esi]
jne 0x10038054
mov ebx, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10038090
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x10038320
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.10103d20
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100380a7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x10038144
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
jmp 0x1003813f
mov edx, str.newVersion
mov si, word [eax]
cmp si, word [edx]
jne 0x100380e9
test si, si
je 0x100380e5
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x100380e9
add eax, 4
add edx, 4
test si, si
jne 0x100380c3
xor eax, eax
jmp 0x100380ee
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x10038147
mov esi, dword [ebp - 0x14]
lea edx, [ecx - 0x10]
add esi, 0xfffffff0
cmp edx, esi
je 0x10038147
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x10038138
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10038138
mov ecx, edx
call fcn.10024750
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x10038130
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x14], eax
jmp 0x10038144
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10024680
mov ecx, dword [ebp - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 8
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10038167
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10037cb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10037cb6
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push str.LoadBindingRedirects_SxS_:_bindingRedirect_found:__s___s
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xb
push str.General
call fcn.10023fc0
push 1
mov byte [ebp - 4], 6
call fcn.100481f0
add esp, 0x14
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x3c]
push 0x1013bc04
call fcn.10026820
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.10039af0
add esp, 4
mov ecx, dword [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xd
lea ecx, [ecx + 0x40]
call fcn.10039ca0
mov byte [ebp - 4], 0xc
mov ecx, ebx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003821d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003823d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003825d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003827d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
mov edi, dword [ebp - 0x28]
mov ebx, 0xffffffff
test ecx, ecx
jg 0x10037ba0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ebx, ebx
jmp 0x10037ba0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100382d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100382f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jle 0x10038310
or ebx, 0xffffffff
jmp 0x10037b02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ebx, 0xffffffff
jmp 0x10037b02
call fcn.10024740
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x44]
sub eax, dword [ecx + 0x40]
sar eax, 2
push eax
push ecx
push dword [ecx + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push 0x1013bc08
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xe
push str.General
call fcn.10023fc0
push 1
mov byte [ebp - 4], 1
call fcn.100481f0
add esp, 0x18
mov ecx, ebx
jmp 0x10037a70