Function at 0x405df0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x448990
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esi + 0x94], 3
mov eax, dword [esi + 0x1ec]
mov ebx, 0x10
cmp eax, ebx
push edi
jb 0x405e2f
mov eax, dword [esi + 0x1d8]
jmp 0x405e35
lea eax, [esi + 0x1d8]
push eax
call dword [0x44b3d4]
test eax, eax
je 0x405e7f
cmp dword [esi + 0x1ec], ebx
jb 0x405e50
mov eax, dword [esi + 0x1d8]
jmp 0x405e56
lea eax, [esi + 0x1d8]
push 0x80
push eax
call dword [0x44b338]
cmp dword [esi + 0x1ec], ebx
jb 0x405e72
mov eax, dword [esi + 0x1d8]
jmp 0x405e78
lea eax, [esi + 0x1d8]
push eax
call dword [0x44b33c]
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], 0
call fcn.0043b0b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x9a
mov byte [esp + 0x40], 1
call fcn.0043b0aa
test eax, eax
je 0x405ed3
push 0x9a
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ef0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
mov ebp, dword [0x44b580]
push 0
push edi
push 0x5400
push eax
call ebp
cmp dword [esi + 0x1ec], ebx
jb 0x405efb
mov ecx, dword [esi + 0x1d8]
mov dword [esp + 0x1c], ecx
jmp 0x405f05
lea edx, [esi + 0x1d8]
mov dword [esp + 0x1c], edx
cmp dword [esi + 0x1d0], ebx
jb 0x405f15
mov eax, dword [esi + 0x1bc]
jmp 0x405f1b
lea eax, [esi + 0x1bc]
mov ebx, dword [esi + 0x9c]
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
push 3
push ebx
mov ebx, dword [esp + 0x24]
push ebx
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
je 0x405fcb
push 0x9b
call fcn.0043b0aa
test eax, eax
je 0x405f85
push 0x9b
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ef0
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push ecx
call ebp
mov esi, dword [esi + 0x98]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
add edi, 0xfffffff0
mov byte [esp + 0x3c], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405fbf
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x4062e9
push 0x9c
call fcn.0043b0aa
test eax, eax
je 0x405fec
push 0x9c
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 ebp
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp dword [esi + 0x1ec], 0x10
jb 0x406016
mov eax, dword [esi + 0x1d8]
jmp 0x40601c
lea eax, [esi + 0x1d8]
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.0041be70
mov ebx, eax
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x406082
lea edx, [esp + 0x10]
push 0x9d
push edx
call fcn.00405580
add esp, 8
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
push 0
push ebx
push 0x5404
push eax
call ebp
lea eax, [edi - 0x10]
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4062e6
push 0x11000
push 0x44b778
push ebx
call fcn.0041b4d0
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4060e9
lea eax, [esp + 0x10]
push 0x9d
push eax
call fcn.00405580
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
add esp, 8
push 0
push ebx
push 0x5404
push ecx
call ebp
lea eax, [edi - 0x10]
mov byte [esp + 0x3c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4062e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4062e6
push 8
lea eax, [esp + 0x28]
push eax
push 0x44b778
push ebx
call fcn.0041bee0
add esp, 0x10
test eax, eax
je 0x406129
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041b260
push ebx
call fcn.0041bca0
lea edx, [esp + 0x18]
push 0x9d
push edx
call fcn.00405580
add esp, 0x10
jmp 0x406048
mov eax, dword [esp + 0x2c]
push eax
call fcn.0043afbf
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4061a3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041b260
push ebx
call fcn.0041bca0
lea edx, [esp + 0x18]
push 0x9d
push edx
call fcn.00405580
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
add esp, 0x10
push 0
push eax
push 0x5404
push ecx
call ebp
push 0
call fcn.0043afc4
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00401ea0
lea ecx, [esp + 0x10]
call fcn.00401ea0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov edx, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.0041b370
mov ecx, dword [esp + 0x38]
add esp, 0xc
cmp eax, ecx
je 0x4061fc
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041b260
push ebx
call fcn.0041bca0
lea edx, [esp + 0x18]
push 0x9d
push edx
call fcn.00405580
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
add esp, 0x10
push 0
push eax
push 0x5404
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push edx
jmp 0x406174
mov eax, dword [esp + 0x18]
push eax
call fcn.0041b260
push ebx
call fcn.0041bca0
mov ecx, dword [0x45e8c8]
add esp, 8
push ecx
xor ebx, ebx
call dword [0x44b3d4]
test eax, eax
je 0x40627a
mov edx, dword [0x45e8c8]
push 0x80
push edx
call dword [0x44b338]
mov eax, dword [0x45e8c8]
push eax
call dword [0x44b33c]
test eax, eax
jne 0x40627a
push 0xa
call dword [0x44b32c]
mov ecx, ebx
inc ebx
cmp ecx, 0xa
je 0x40631d
mov edx, dword [0x45e8c8]
push 0x80
push edx
call dword [0x44b338]
mov eax, dword [0x45e8c8]
push eax
call dword [0x44b33c]
test eax, eax
je 0x406244
mov eax, dword [0x45e8c8]
push 0x44b6f8
push eax
call fcn.0042c809
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x406370
lea ecx, [esp + 0x10]
push 0x9d
push ecx
call fcn.00405580
mov edx, dword [esi + 0x1c]
add esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push 0x5404
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043afc4
add edi, 0xfffffff0
add esp, 4
mov byte [esp + 0x3c], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062e6
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push 0x12
push 0x44be14
lea ecx, [esp + 0x18]
call fcn.00401fc0
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
push 0
push ebx
push 0x5404
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043afc4
add edi, 0xfffffff0
add esp, 4
mov byte [esp + 0x3c], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4062e6
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
jmp 0x4062e6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push ebx
push eax
push 1
push ecx
call fcn.0042c761
push ebx
call fcn.0042c609
mov edx, dword [esp + 0x30]
push edx
call fcn.0043afc4
add esp, 0x18
push 0x9e
call fcn.0043b0aa
test eax, eax
je 0x4063b6
push 0x9e
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 ebp
add edi, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063e3
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret