Function at 0x403520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8005
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5021c0]
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 dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 0x10]
cmp dword [ebp + 0x24], 7
mov dword [ebp - 0x44], 2
jbe 0x403571
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x20]
mov ecx, 0x502de4
push eax
call fcn.00403a40
cmp dword [0x502df4], 0
jne 0x4035ad
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x4035ad
cmp eax, 0x502de4
je 0x4035ad
cmp dword [eax + 0x14], 7
mov edx, dword [eax + 0x10]
jbe 0x4035a1
mov eax, dword [eax]
push edx
push eax
mov ecx, 0x502de4
call fcn.00403a40
cmp dword [0x502df8], 7
mov eax, 0x502de4
jbe 0x4035c0
mov eax, dword [0x502de4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4035ed
cmp dword [0x502df8], 7
mov eax, 0x502de4
jbe 0x4035de
mov eax, dword [0x502de4]
xor ecx, ecx
mov dword [0x502df4], 0
mov word [eax], cx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
cmp esi, ebx
je 0x403609
mov ecx, esi
call fcn.004027a0
add esi, 0x18
cmp esi, ebx
jne 0x4035f6
mov eax, dword [edi]
mov dword [edi + 4], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0x4eb5dc
push 1
push 0
push 0x4e27a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x4036d9
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x3c]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov esi, eax
test esi, esi
js 0x4036d9
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x3c]
or eax, 0xa60
push eax
push edx
call ecx
mov esi, eax
test esi, esi
js 0x4036d9
mov ebx, dword [ebp - 0x38]
add ebx, 4
push 0xa
push ebx
call fcn.004af5d8
add esp, 8
test eax, eax
je 0x40367d
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x30]
push ebx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [0x502df4], 0
je 0x4036d9
cmp dword [0x502df8], 7
mov eax, 0x502de4
mov dword [ebp - 0x2c], 0
jbe 0x4036aa
mov eax, dword [0x502de4]
lea ecx, [ebp - 0x2c]
push ecx
push 0x4eb5ec
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
mov esi, eax
test esi, esi
js 0x4036d9
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0x2c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov esi, eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, 0x507860
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4036e1
sub ecx, edx
sar ecx, 1
je 0x403777
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], 0
push 0x4eb5cc
mov eax, dword [ecx]
push ecx
call dword [eax]
test eax, eax
js 0x403938
mov ecx, dword [ebp - 0x2c]
push 0x4eb5ac
push 0x64
push ecx
mov eax, dword [ecx]
call dword [eax + 0x68]
mov ecx, dword [ebp - 0x2c]
push 0
push 0x507860
push 0x65
mov eax, dword [ecx]
push ecx
call dword [eax + 0x20]
mov ecx, 0x5076d0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403740
sub ecx, edx
sar ecx, 1
je 0x403763
mov ecx, dword [ebp - 0x2c]
push 0
push 0x5076d0
push 0x66
mov eax, dword [ecx]
push ecx
call dword [eax + 0x20]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40377f
test esi, esi
js 0x403938
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0x34]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
js 0x403938
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x6c]
test eax, eax
js 0x403938
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
test eax, eax
js 0x40393f
xor esi, esi
cmp dword [ebp - 0x3c], esi
jbe 0x40392d
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], 0
push esi
mov eax, dword [ecx]
push ecx
call dword [eax + 0x20]
test eax, eax
js 0x403923
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], 0
push 0x80058000
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
test eax, eax
js 0x4038dc
mov edx, dword [ebp - 0x40]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea ebx, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403830
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403450
mov byte [ebp - 4], 1
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
je 0x403889
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
xor eax, eax
add dword [edi + 4], 0x18
mov ecx, 7
mov word [ebp - 0x28], ax
jmp 0x403898
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.00403b50
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x4038d3
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4038c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403971
push ecx
push edx
call fcn.004accfd
add esp, 8
push dword [ebp - 0x40]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x38]
push edx
push 0x4eb5cc
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
js 0x403923
mov eax, dword [ebp - 0x38]
push 0x5079f4
push 0x65
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x38]
push 0x5079f0
push 0x66
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
inc esi
cmp esi, dword [ebp - 0x3c]
jb 0x4037d6
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40393f
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [ebp + 0x10]
call fcn.004027a0
mov eax, dword [ebp - 0x44]
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.004accbf
mov esp, ebp
pop ebp
ret 0x20
call fcn.004b306f
int3