Function at 0x435970
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4af2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435d69
mov edx, dword [esp + 0x38]
mov eax, dword [edx - 0xc]
cmp eax, 3
jl 0x435d69
jne 0x4359e3
cmp eax, 2
jge 0x4359d5
push 0x80070057
call fcn.004058d0
movzx ecx, word [edx + 4]
cmp cx, 0x5c
je 0x435d69
cmp eax, 3
jne 0x435a05
cmp eax, 2
jge 0x4359f7
push 0x80070057
call fcn.004058d0
movzx eax, word [edx + 4]
cmp ax, 0x2f
je 0x435d69
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x14]
mov ebp, dword [eax]
mov ebx, dword [edi]
jmp 0x435a16
mov edi, dword [esp + 0x34]
mov esi, dword [edi + 0x14]
mov eax, dword [edi]
test ebx, ebx
je 0x435a23
cmp ebx, eax
je 0x435a28
call fcn.00490387
cmp ebp, esi
je 0x435b13
test ebx, ebx
jne 0x435a6f
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x435a45
call fcn.00490387
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x435a73
cmp eax, dword [esi]
jne 0x435a73
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x435aaa
mov eax, dword [ebx]
jmp 0x435a3b
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x435afe
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004903e8
add esp, 0x10
mov ecx, dword [esp + 0x38]
lea esi, [edi + 0x10]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x435b03
test ebx, ebx
jne 0x435afa
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x435ad2
call fcn.00490387
mov ebp, dword [ebp]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435a12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x435a12
mov eax, dword [ebx]
jmp 0x435ac8
call fcn.00405210
mov dword [esp + 0x14], 1
lea eax, [esi - 0x10]
jmp 0x435d4e
mov eax, dword [edi + 0x30]
mov ebx, dword [eax]
mov ebp, dword [edi + 0x1c]
jmp 0x435b24
mov edi, dword [esp + 0x34]
mov esi, dword [edi + 0x30]
mov eax, dword [edi + 0x1c]
test ebp, ebp
je 0x435b32
cmp ebp, eax
je 0x435b37
call fcn.00490387
cmp ebx, esi
je 0x435d71
test ebp, ebp
jne 0x435b7e
call fcn.00490387
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x435b54
call fcn.00490387
mov esi, dword [ebx + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x435b83
cmp eax, dword [esi]
jne 0x435b83
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x435bbe
mov eax, dword [ebp]
jmp 0x435b4a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x435afe
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004903e8
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x20], edi
xor ecx, ecx
test edi, edi
setne cl
mov byte [esp + 0x2c], 1
mov esi, ecx
test esi, esi
je 0x435cec
mov edx, dword [esp + 0x38]
push edi
push edx
call fcn.004920dc
add esp, 8
test eax, eax
je 0x435cf6
mov eax, dword [edi - 0xc]
cmp eax, 3
jle 0x435ca6
mov ecx, dword [esp + 0x38]
cmp dword [ecx - 0xc], 3
jle 0x435ca6
lea edx, [esp + 0x20]
add eax, 0xfffffffd
push edx
lea ecx, [esp + 0x20]
call fcn.00435dc0
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x38]
mov eax, dword [eax - 0xc]
lea ecx, [esp + 0x38]
push ecx
add eax, 0xfffffffd
lea ecx, [esp + 0x1c]
call fcn.00435dc0
mov byte [esp + 0x2c], 3
test esi, esi
je 0x435cec
mov edx, dword [esp + 0x38]
push edi
push edx
call fcn.004920dc
add esp, 8
or edx, 0xffffffff
mov byte [esp + 0x2c], 2
test eax, eax
mov eax, dword [esp + 0x18]
je 0x435d00
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435c81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435ca6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x435ce7
call fcn.00490387
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x435cbb
call fcn.00490387
mov ebx, dword [ebx]
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435b20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x435b20
mov eax, dword [ebp]
jmp 0x435cb1
push 0x80004005
call fcn.004058d0
mov dword [esp + 0x14], 1
jmp 0x435d46
add eax, 0xfffffff0
mov dword [esp + 0x14], 1
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435d21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435d46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435d71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x435d71
mov dword [esp + 0x14], 1
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435d99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8