Function at 0x463490
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x528c81
mov eax, dword fs:[0]
push eax
sub esp, 0x684
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x698]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6ac]
mov esi, dword [esp + 0x6a8]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, edi
call fcn.00402550
xor ebx, ebx
mov dword [esp + 0x6a0], ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x463762
cmp eax, 2
jl 0x463762
push edi
call dword [0x5313c0]
test eax, eax
je 0x463762
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
cmp eax, ebx
je 0x463579
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4635dd
cmp ecx, eax
jg 0x4635dd
movzx eax, word [edi + ecx*2]
cmp ax, 0x5c
jne 0x463579
mov edi, dword [edi - 0xc]
lea eax, [edi - 1]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
call fcn.00401d40
lea edi, [esp + 0x18]
mov byte [esp + 0x6a0], 1
call fcn.00401dd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6a0], bl
call fcn.00402660
mov edi, dword [esp + 0x18]
push 0x20a
lea edx, [esp + 0x48a]
push ebx
push edx
mov word [esp + 0x490], bx
call fcn.00508d80
add esp, 0xc
push edi
push str._s
lea eax, [esp + 0x48c]
push 0x104
push eax
call fcn.00501fe2
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x488]
push edx
call dword [0x531338]
mov ebp, eax
lea eax, [esp + 0x24]
push eax
push ebp
call dword [0x531358]
test eax, eax
je 0x463729
jmp 0x4635f2
push 0x80070057
call fcn.004026a0
jmp 0x4635f0
xor ebx, ebx
test byte [esp + 0x24], 0x10
je 0x46368a
lea ecx, [esp + 0x50]
push 0x535ad8
push ecx
call fcn.005006a9
add esp, 8
test eax, eax
je 0x463715
lea edx, [esp + 0x50]
push 0x535ad4
push edx
call fcn.005006a9
add esp, 8
test eax, eax
je 0x463715
push 0x20a
lea eax, [esp + 0x27a]
push ebx
push eax
mov word [esp + 0x280], bx
call fcn.00508d80
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push edx
push str._s_s
lea eax, [esp + 0x280]
push 0x104
push eax
call fcn.00501fe2
add esp, 0x14
lea ecx, [esp + 0x274]
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.00463490
jmp 0x463715
push 0x20c
call fcn.005002a8
add esp, 4
push 0x20c
mov edi, eax
push ebx
push edi
call fcn.00508d80
mov eax, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x50]
push edx
push eax
push str._s_s
push 0x104
push edi
call fcn.00501fe2
add esp, 0x14
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00402550
mov ebx, eax
mov byte [esp + 0x6a0], 2
call fcn.0040d850
mov byte [esp + 0x6a0], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463708
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x463715
push edi
call fcn.00500319
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push ebp
call dword [0x531358]
test eax, eax
jne 0x4635f0
push ebp
call dword [0x531354]
mov dword [esp + 0x6a0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46375b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x46378f
mov dword [esp + 0x6a0], 0xffffffff
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 0x46378d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.004ff939
add esp, 0x690
ret 8