Function at 0x40d040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4497d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], ebx
call fcn.00402410
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
or esi, 0xffffffff
cmp dword [eax - 0xc], ebx
je 0x40d24a
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push str.BFVKanDianYing.exe
lea edx, [ebp + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00401a10
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d112
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.BFVServer.exe
lea edx, [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00401a10
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d152
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.BFVDesktop.exe
lea edx, [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00401a10
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d192
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x40d1b3
mov ecx, dword [ebp - 0x14]
push 0x455444
push edi
call fcn.0040d290
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x1c]
push ebx
call esi
test eax, eax
je 0x40d1ce
mov ecx, dword [ebp - 0x14]
push 0x455450
push ebx
call fcn.0040d290
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d1ed
mov ecx, dword [ebp - 0x14]
push 0x455470
push esi
call fcn.0040d290
mov dword [ebp - 0x10], eax
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d20d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d22a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d247
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40d26b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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