Function at 0x40d040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461f15
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x47a040]
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
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x40d354
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.ew.e
push str.viewce
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push str.web_sfCefVi_sxe
push eax
call fcn.00405a50
mov eax, dword [0x47cfec]
add esp, 0x10
test al, 1
jne 0x40d0ec
or eax, 1
mov dword [0x47cfec], eax
push 0x64
push 0
push 0x47cf88
mov byte [ebp - 4], 1
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [0x47cf98]
lea ecx, [ebp - 0x224]
call fcn.0041b5b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x258]
push dword [eax]
call fcn.00407280
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00439ab0
add esp, 0xc
lea eax, [ebp - 0x258]
cmp dword [ebp - 0x244], 7
cmova eax, dword [ebp - 0x258]
push eax
lea eax, [ebp - 0x218]
push 0x46f4f8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
add esp, 0xc
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00407280
mov byte [ebp - 4], 4
lea esi, [ebp - 0x240]
cmp dword [ebp - 0x22c], 7
cmova esi, dword [ebp - 0x240]
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x40d35e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.00405690
test al, al
jne 0x40d1ec
test esi, esi
jne 0x40d1c9
xor ecx, ecx
jmp 0x40d1df
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d1d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x21c]
call fcn.004058c0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x22c]
cmp ecx, 7
jbe 0x40d230
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d226
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d368
push ecx
push edx
call fcn.00437f52
add esp, 8
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x244]
cmp ecx, 7
jbe 0x40d291
mov edx, dword [ebp - 0x258]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d287
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d368
push ecx
push edx
call fcn.00437f52
add esp, 8
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
mov byte [ebp - 4], 9
or ebx, 0xffffffff
mov edx, dword [ebp - 0x224]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d2d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d301
push ecx
mov ebx, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x228], ebx
call fcn.00405cd0
add eax, 0x10
mov dword [ebx], eax
call fcn.0040ccd0
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d31c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40d338
mov ecx, dword [edi]
push edi
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004378e6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401920
push 0x80004005
call fcn.00401920
call fcn.00441fe0
int3