Function at 0x406420
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x448a2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc2c
mov eax, dword [0x45d874]
xor eax, esp
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1f0]
push edi
mov dword [esp + 0xc34], eax
mov dword [esi + 0x94], 2
call fcn.00409a60
test eax, eax
je 0x40650b
mov eax, dword [esi + 0x1c]
mov ebx, dword [0x44b580]
push 0
push 0x64
push 0x5402
push eax
call ebx
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x90
mov dword [esp + 0xc44], 0
call fcn.0043b0aa
test eax, eax
je 0x4064bf
push 0x90
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ef0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push eax
call ebx
mov ecx, dword [esi + 0x1c]
push 0
push 0x44b917
push 0x5401
push ecx
call ebx
lea eax, [edi - 0x10]
mov dword [esp + 0xc40], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406504
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
jmp 0x406b9c
mov ecx, dword [esi + 0x1f0]
call fcn.00409a50
test eax, eax
jne 0x406591
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x71
mov dword [esp + 0xc44], 1
call fcn.0043b0aa
test eax, eax
je 0x406553
push 0x71
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ef0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5404
push eax
call dword [0x44b580]
lea eax, [edi - 0x10]
mov dword [esp + 0xc40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40658a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x406b9c
cmp dword [esi + 0x10c], 0x10
jb 0x4065a2
mov eax, dword [esi + 0xf8]
jmp 0x4065a8
lea eax, [esi + 0xf8]
push ebp
push 0
push 0
lea ecx, [esp + 0x440]
push ecx
lea edx, [esp + 0x844]
push edx
push eax
call fcn.0042d82e
add esp, 0x14
lea eax, [esp + 0x438]
push eax
lea ecx, [esp + 0x83c]
push ecx
call dword [0x44b3c8]
mov ecx, dword [esi + 0x1f0]
mov dword [esp + 0x18], 0
call fcn.00409a30
test eax, eax
mov ebx, dword [0x44b580]
jle 0x406afe
lea ecx, [ecx]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x1f0]
push edx
call fcn.0040bd20
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x34], 0x10
jb 0x406622
mov ecx, dword [ecx + 0x20]
jmp 0x406625
add ecx, 0x20
lea edx, [esp + 0x438]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x406630
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0xc44], 2
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x448]
push ecx
mov byte [esp + 0xc58], 3
mov dword [esp + 0x44], 3
call fcn.004441f9
test eax, eax
je 0x406bc2
mov edx, dword [esp + 0x1c]
push edx
call dword [0x44b3e4]
push eax
lea ecx, [esp + 0x14]
call fcn.00402150
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov byte [esp + 0xc4c], 5
call fcn.0042d6c5
add esp, 8
test eax, eax
je 0x406c7e
mov edi, dword [0x44b3c8]
lea edx, [esp + 0x838]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x40], 0
call edi
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x3c]
push edx
call edi
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push 0x85
push ecx
mov byte [esp + 0xc50], 7
call fcn.00405580
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0x1c]
add esp, 0xc
push 0
push edx
push 0x5400
push eax
call ebx
lea ecx, [esp + 0x38]
push ecx
call dword [0x44b3d4]
test eax, eax
je 0x406913
lea edx, [esp + 0x38]
push 0x44b6fc
push edx
call fcn.0042c809
mov edi, eax
add esp, 8
test edi, edi
jne 0x4067c6
push 0x80
lea eax, [esp + 0x3c]
push eax
call dword [0x44b338]
lea ecx, [esp + 0x38]
push ecx
call dword [0x44b33c]
test eax, eax
jne 0x406913
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x43c]
push 0x44be28
push ecx
call fcn.0042c4f2
mov eax, dword [esi + 0x1c]
add esp, 0xc
push edi
lea edx, [esp + 0x43c]
push edx
push 0x5404
push eax
call ebx
jmp 0x406d49
push 2
push 0
push edi
call fcn.0042cb83
push edi
call fcn.0042cab3
mov ebp, eax
add esp, 0x10
cmp ebp, 4
ja 0x406840
push edi
call fcn.0042c609
add esp, 4
push 0x80
lea edx, [esp + 0x3c]
push edx
call dword [0x44b338]
lea eax, [esp + 0x38]
push eax
call dword [0x44b33c]
test eax, eax
jne 0x406913
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x43c]
push 0x44be28
push edx
call fcn.0042c4f2
mov ecx, dword [esi + 0x1c]
add esp, 0xc
push 0
lea eax, [esp + 0x43c]
push eax
push 0x5404
push ecx
call ebx
jmp 0x406d49
push ebp
call fcn.0043afbf
push 0
push 0
push edi
mov ebx, eax
call fcn.0042cb83
push edi
push ebp
push 1
push ebx
call fcn.0042c905
push edi
call fcn.0042c609
lea ecx, [esp + 0x38]
push ecx
lea edx, [ebp - 4]
push edx
push ebx
mov dword [esp + 0x44], 0
call fcn.004079c0
add esp, 0x30
test eax, eax
je 0x4068d7
push 0x80
lea eax, [esp + 0x3c]
push eax
call dword [0x44b338]
lea ecx, [esp + 0x38]
push ecx
call dword [0x44b33c]
test eax, eax
jne 0x406904
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x43c]
push 0x44be28
push eax
call fcn.0042c4f2
mov edx, dword [esi + 0x1c]
add esp, 0xc
push 0
lea ecx, [esp + 0x43c]
push ecx
push 0x5404
push edx
call dword [0x44b580]
jmp 0x406d49
mov ebp, dword [ebx + ebp - 4]
cmp ebp, dword [esp + 0x14]
je 0x406904
push 0x80
lea edx, [esp + 0x3c]
push edx
call dword [0x44b338]
lea eax, [esp + 0x38]
push eax
call dword [0x44b33c]
test eax, eax
je 0x406cca
push ebx
call fcn.0043afc4
mov ebx, dword [0x44b580]
add esp, 4
lea ecx, [esp + 0x38]
push ecx
call dword [0x44b3d4]
test eax, eax
jne 0x4069e8
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x3c]
cmp dword [eax + 0x34], 0x10
jb 0x406938
mov eax, dword [eax + 0x20]
jmp 0x40693b
add eax, 0x20
mov edi, dword [esi + 0x9c]
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
push 1
push edi
lea edi, [esp + 0x40]
push edi
push eax
call dword [edx + 0x10]
mov ecx, dword [esi + 0x98]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
push 1
call dword [edx + 0x20]
mov ecx, dword [esi + 0x98]
mov eax, dword [ecx]
call dword [eax + 4]
and eax, 0xffff0000
cmp eax, 0x20000
jne 0x406cff
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
call dword [edx + 0x14]
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push 0x8f
push ecx
mov byte [esp + 0xc50], 9
call fcn.00405580
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x1c]
add esp, 0xc
push 0
push edx
push 0x5400
push eax
call ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0xc44], 7
call fcn.00401ea0
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0x1f0]
push edi
mov byte [esp + 0xc50], 0xa
call fcn.004190b0
test eax, eax
je 0x406d74
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xc44], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406a4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xc44], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xc44], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xc44], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406abd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0xc44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ae6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0x1f0]
inc edi
mov dword [esp + 0x18], edi
call fcn.00409a30
cmp edi, eax
jl 0x406600
mov eax, dword [esi + 0x1c]
push 0
push 0x64
push 0x5402
push eax
call ebx
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x90
mov dword [esp + 0xc48], 0xc
call fcn.0043b0aa
test eax, eax
je 0x406b4c
push 0x90
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ef0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push eax
call ebx
mov ecx, dword [esi + 0x1c]
push 0
push 0x44b917
push 0x5401
push ecx
call ebx
push 0x64
call dword [0x44b32c]
lea eax, [edi - 0x10]
mov dword [esp + 0xc44], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
pop ebp
mov ecx, dword [esp + 0xc38]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc2c]
pop ebx
xor ecx, esp
call fcn.0042c5af
add esp, 0xc38
ret
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x72
mov byte [esp + 0xc48], 4
call fcn.0043b0aa
test eax, eax
je 0x406bf8
push 0x72
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ef0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5404
push eax
call ebx
lea eax, [edi - 0x10]
mov byte [esp + 0xc44], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xc44], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0xc44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x406b9b
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x72
mov byte [esp + 0xc48], 6
call fcn.0043b0aa
test eax, eax
je 0x406cb4
push 0x72
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ef0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5404
push eax
call ebx
lea eax, [edi - 0x10]
jmp 0x406e09
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x43c]
push 0x44be28
push ecx
call fcn.0042c4f2
mov eax, dword [esi + 0x1c]
add esp, 0xc
push 0
lea edx, [esp + 0x43c]
push edx
push 0x5404
push eax
call dword [0x44b580]
jmp 0x406d49
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push 0x73
push ecx
mov byte [esp + 0xc50], 8
call fcn.00405580
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x1c]
add esp, 0xc
push 0
push edx
push 0x5404
push eax
call ebx
lea ecx, [esp + 0x18]
call fcn.00401ea0
lea ecx, [esp + 0x24]
call fcn.00401ea0
lea ecx, [esp + 0x10]
call fcn.00401ea0
lea ecx, [esp + 0x1c]
call fcn.00401ea0
lea ecx, [esp + 0x20]
call fcn.00401ea0
xor al, al
jmp 0x406b9b
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x7a
push edx
mov byte [esp + 0xc54], 0xb
call fcn.00405580
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x1c]
add esp, 0x10
push 0
push edi
push 0x5404
push eax
call ebx
lea eax, [edi - 0x10]
mov byte [esp + 0xc44], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xc44], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xc44], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x406c09