Function at 0x40a490
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46bdc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489ec0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x20]
sub eax, 0x10
push eax
mov byte [esp + 0x1b], 1
call fcn.004051c0
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x2c], 0
cmp esi, dword [ebx + 0x34]
jbe 0x40a4e9
call fcn.0044f012
mov ebp, dword [ebx + 0x24]
lea esp, [esp]
mov edi, dword [ebx + 0x34]
cmp dword [ebx + 0x30], edi
jbe 0x40a4fd
call fcn.0044f012
mov eax, dword [ebx + 0x24]
test ebp, ebp
je 0x40a508
cmp ebp, eax
je 0x40a50d
call fcn.0044f012
cmp esi, edi
je 0x40a6ac
push 0x46fb9c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00406780
add esp, 0xc
mov edi, eax
mov byte [esp + 0x2c], 1
test ebp, ebp
jne 0x40a61d
call fcn.0044f012
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40a54c
call fcn.0044f012
lea edx, [esi + 0xc]
push edx
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004066b0
add esp, 0xc
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x40a625
call fcn.0044f012
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40a59c
call fcn.0044f012
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esi + 8], 3
call dword [0x46f320]
test eax, eax
je 0x40a5db
mov edx, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push edx
call dword [0x46f0e0]
cmp eax, 0xffffffff
je 0x40a632
push eax
call dword [0x46f184]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a600
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x40a62d
call fcn.0044f012
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40a615
call fcn.0044f012
add esi, 0x18
jmp 0x40a4f0
mov eax, dword [ebp]
jmp 0x40a542
mov eax, dword [ebp]
jmp 0x40a592
mov eax, dword [ebp]
jmp 0x40a60b
mov byte [esp + 0x17], 0
test ebp, ebp
jne 0x40a6ea
call fcn.0044f012
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40a650
call fcn.0044f012
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esi + 8], 2
call fcn.00409d20
test al, al
je 0x40a687
test ebp, ebp
jne 0x40a6f2
call fcn.0044f012
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40a680
call fcn.0044f012
mov dword [esi + 8], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a6ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx + 0x5c], 1
jne 0x40a6fa
mov ecx, ebx
call fcn.00409830
test al, al
je 0x40a6fa
mov ecx, dword [ebx + 0x58]
mov edx, dword [ecx + 4]
lea esi, [ebx + 0x40]
push edx
mov ecx, esi
call fcn.00406960
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
mov bl, 1
jmp 0x40a715
mov eax, dword [ebp]
jmp 0x40a646
mov eax, dword [ebp]
jmp 0x40a676
cmp byte [esp + 0x17], 0
jne 0x40a711
mov ecx, dword [esp + 0x34]
push 0x1a
push str.the_file_deployed_is_inUse
call fcn.00406460
mov bl, byte [esp + 0x17]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a73d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4