Function at 0x409db0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46bce1
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x489ec0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489ec0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x30]
cmp esi, dword [ebx + 0x34]
jbe 0x409dfa
call fcn.0044f012
mov edi, dword [ebx + 0x24]
mov ebp, esi
nop
mov esi, dword [ebx + 0x34]
cmp dword [ebx + 0x30], esi
jbe 0x409e0d
call fcn.0044f012
mov eax, dword [ebx + 0x24]
test edi, edi
je 0x409e18
cmp edi, eax
je 0x409e1d
call fcn.0044f012
cmp ebp, esi
je 0x409f54
push 0x46fb9c
lea eax, [ebx + 0x20]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00406780
add esp, 0xc
mov esi, eax
mov dword [esp + 0x238], 0
test edi, edi
jne 0x409ef6
call fcn.0044f012
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x409e61
call fcn.0044f012
lea edx, [ebp + 0xc]
push edx
lea eax, [esp + 0x18]
push esi
push eax
call fcn.004066b0
add esp, 0xc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x238], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x46f320]
test eax, eax
je 0x409f08
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push edx
call dword [0x46f0e0]
cmp eax, 0xffffffff
jne 0x409f01
test edi, edi
jne 0x409efd
call fcn.0044f012
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x409ee1
call fcn.0044f012
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov dword [ebp + 8], 2
call fcn.00409d20
jmp 0x409f08
mov eax, dword [edi]
jmp 0x409e57
mov eax, dword [edi]
jmp 0x409ed7
push eax
call dword [0x46f184]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x409f50
call fcn.0044f012
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x409f48
call fcn.0044f012
add ebp, 0x18
jmp 0x409e00
mov eax, dword [edi]
jmp 0x409f3e
push 0x104
lea ecx, [esp + 0x28]
push ecx
push 0
call dword [0x46f08c]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.00408550
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
lea esi, [ebx + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x240], 3
call fcn.00406860
mov edi, dword [esp + 0x1c]
mov ebx, dword [esi + 0x18]
mov eax, dword [esi]
test edi, edi
je 0x409fa4
cmp edi, eax
je 0x409fa9
call fcn.0044f012
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x409fbf
push eax
push edi
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004071d0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0044e030
add esp, 0x228
ret