Function at 0x405c90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4cf550
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 4]
push 0xd8c
push eax
call dword [0x4d53f4]
mov eax, dword [ebp + 0xa8]
lea esi, [ebp + 0x28]
push eax
call fcn.004a91d0
add esp, 4
xor ebx, ebx
mov dword [esi + 0x80], ebx
push 1
mov eax, esi
mov dword [esi + 0x84], ebx
call fcn.00436500
mov ecx, dword [ebp + 0x18c]
cmp dword [ecx - 0xc], ebx
je 0x405d0b
lea ebx, [ebp + 0x158]
call fcn.0043af30
xor ebx, ebx
lea ecx, [esp + 0x14]
push ecx
call fcn.004291c0
add esp, 4
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x14]
mov ecx, dword [edi - 0xc]
cmp ecx, ebx
jle 0x405d53
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x405ee9
cmp eax, ecx
jg 0x405ee9
movzx eax, word [edi + eax*2]
cmp ax, 0x5c
je 0x405d53
push 0x5c
lea edi, [esp + 0x18]
call fcn.00406b00
mov edi, dword [esp + 0x14]
add ebp, 0x188
lea edx, [esp + 0x2c]
push ebp
push edx
lea ebx, [esp + 0x1c]
call fcn.004064f0
add esp, 8
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x2c]
mov esi, dword [0x4d5364]
push eax
call esi
test eax, eax
mov ebp, dword [0x4d52e4]
je 0x405d8e
mov ecx, dword [esp + 0x2c]
push ecx
call ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str..tdl
call fcn.004065b0
mov eax, dword [eax]
add esp, 8
push eax
call esi
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405dcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x405e0c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str..tdl
call fcn.004065b0
mov eax, dword [eax]
add esp, 8
push eax
call ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str..xftp
call fcn.004065b0
mov eax, dword [eax]
add esp, 8
push eax
call esi
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x405e8a
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str..xftp
call fcn.004065b0
mov eax, dword [eax]
add esp, 8
push eax
call ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405eaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push 0x80070057
call fcn.00402940
int3