Function at 0x41fa40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push esi
or ebx, 0xffffffff
mov dword [ebp - 8], ecx
cmp dword [eax - 0xc], 0
push edi
je 0x41fc75
push 0x4a4a90
lea ecx, [ebp + 8]
call fcn.004323c0
push 0x4a4a90
lea ecx, [ebp + 8]
call fcn.004325d0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x41fc75
call fcn.00402250
test eax, eax
je 0x42000a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp dword [eax - 0xc], 0
jl 0x41fb4c
push 0x4a4a90
push eax
call fcn.0044b974
mov edi, eax
add esp, 8
mov eax, dword [ebp + 8]
test edi, edi
je 0x41fb4c
sub edi, eax
sar edi, 1
test edi, edi
jle 0x41fb4c
cmp edi, dword [eax - 0xc]
jl 0x41faea
add eax, 0xfffffff0
push eax
call fcn.00403380
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xc], esi
jmp 0x41fb16
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x41fafa
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x41fb06
call fcn.00402250
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00407360
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.00409a20
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41fb39
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 1]
push eax
push 0
lea ecx, [ebp + 8]
call fcn.00410d10
mov esi, dword [ebp - 4]
jmp 0x41fbaa
lea edx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp edx, edi
je 0x41fb9b
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x41fb8c
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x41fb8c
push edx
call fcn.00403380
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41fb84
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [ebp - 4], esi
jmp 0x41fb9b
push dword [eax - 0xc]
lea ecx, [ebp - 4]
push eax
call fcn.00402620
mov esi, dword [ebp - 4]
push 0
push 0x4a1628
lea ecx, [ebp + 8]
call fcn.00402620
mov edi, dword [esi - 0xc]
test edi, edi
js 0x420000
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41fbd2
push edi
lea ecx, [ebp - 4]
call fcn.004024d0
mov esi, dword [ebp - 4]
lea eax, [edi + 1]
push eax
push esi
call fcn.0046b5d9
add esp, 8
cmp edi, dword [esi - 8]
jg 0x420000
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
xor edi, edi
mov ebx, dword [0x4c10bc]
mov eax, dword [0x4c10b8]
sub ebx, eax
sar ebx, 2
test ebx, ebx
je 0x41fc4e
mov eax, dword [eax + edi*4]
mov ecx, dword [eax]
mov eax, esi
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41fc36
test dx, dx
je 0x41fc32
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41fc36
add ecx, 4
add eax, 4
test dx, dx
jne 0x41fc10
xor eax, eax
jmp 0x41fc3b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x41fc93
mov eax, dword [0x4c10b8]
inc edi
cmp edi, ebx
jb 0x41fc07
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41fc68
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x41fa83
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41fc8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [0x4c10b8]
lea eax, [edi*4]
mov dword [ebp - 4], eax
mov ebx, dword [eax + ebx]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x594]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x41fcbf
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x41fcd3
call fcn.00402250
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x42000a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 8]
lea edi, [eax + 0x10]
mov eax, dword [ebx + 8]
mov ecx, dword [ecx + 0x594]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], edi
mov eax, dword [eax - 0xc]
mov ebx, dword [ecx - 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ebx
lea edx, [ebx + eax]
test edx, edx
js 0x420000
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x41fd26
push edx
lea ecx, [ebp - 0x10]
call fcn.004024d0
mov edi, dword [ebp - 0x10]
add ebx, ebx
push ebx
push dword [ebp - 0x18]
push ebx
push edi
call fcn.00437560
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
push dword [ebp - 0x1c]
push eax
lea eax, [ebx + edi]
push eax
call fcn.00437560
mov eax, dword [ebp - 0x20]
add esp, 0x20
add eax, dword [ebp - 0x14]
cmp eax, dword [edi - 8]
jg 0x420000
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041d210
add esp, 8
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41fd86
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x4c10b8]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + eax]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebx + 0xc]
lea edx, [eax - 0x10]
sub edi, 0x10
mov dword [ebp - 0x28], edx
cmp edx, edi
je 0x41fdea
cmp dword [edi + 0xc], 0
jl 0x41fdde
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x41fdde
push edx
call fcn.00403380
add esp, 4
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41fdd6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebx + 0xc], eax
jmp 0x41fdea
push dword [eax - 0xc]
lea ecx, [ebx + 0xc]
push eax
call fcn.00402620
mov eax, dword [0x4c10b8]
mov edx, dword [ebp - 4]
mov ebx, dword [edx + eax]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x594]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x41fe0e
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x41fe22
call fcn.00402250
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x42000a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 8]
lea edi, [eax + 0x10]
mov eax, dword [ebx + 8]
mov ecx, dword [ecx + 0x594]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
mov eax, dword [eax - 0xc]
mov ebx, dword [ecx - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ebx
lea edx, [ebx + eax]
test edx, edx
js 0x420000
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x41fe75
push edx
lea ecx, [ebp - 0x14]
call fcn.004024d0
mov edi, dword [ebp - 0x14]
add ebx, ebx
push ebx
push dword [ebp - 0x20]
push ebx
push edi
call fcn.00437560
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
push dword [ebp - 0x1c]
push eax
lea eax, [ebx + edi]
push eax
call fcn.00437560
mov eax, dword [ebp - 0x18]
add esp, 0x20
add eax, dword [ebp - 0x10]
cmp eax, dword [edi - 8]
jg 0x420000
xor ecx, ecx
mov dword [edi - 0xc], eax
push edi
mov word [edi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
add edi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41fed1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [0x4c10b8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
test ebx, ebx
je 0x41ffd4
mov eax, dword [eax + 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x20], eax
push ecx
mov ecx, dword [edi]
mov dword [ebp - 0x1c], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x41ff0c
cmp ecx, dword [edi]
jne 0x41ff0c
lock inc dword [eax]
jmp 0x41ff47
mov eax, dword [ecx]
lea ebx, [edi + 4]
push 2
push dword [ebx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x41fffb
mov ecx, dword [ebx]
mov dword [edi + 4], ecx
mov eax, dword [ebx]
lea ecx, [eax*2 + 2]
push ecx
push dword [ebp - 0x20]
lea eax, [eax*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00437560
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 0x10]
push ecx
mov dword [ebp - 0x1c], esp
mov dword [ecx], eax
mov eax, dword [0x4c10b8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x41ff83
cmp ecx, dword [edi]
jne 0x41ff83
lock inc dword [eax]
jmp 0x41ffb3
mov eax, dword [ecx]
lea ebx, [edi + 4]
push 2
push dword [ebx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x41fffb
mov ecx, dword [ebx]
lea eax, [edi + 0x10]
mov dword [edi + 4], ecx
mov ecx, dword [ebx]
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x20]
push ecx
push eax
call fcn.00437560
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 0x10]
mov dword [ecx], eax
call fcn.0040ebe0
mov ecx, dword [0x4c10b8]
add esp, 8
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
mov byte [ecx + 0x24], al
jmp 0x41ffd8
mov byte [eax + 0x24], 1
mov edx, dword [ebp - 0x28]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fc51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41fc51
call fcn.004026d0
push 0x80070057
call fcn.00402080
push 0x80004005
call fcn.00402080
int3