Function at 0x409120
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46bb28
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489ec0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x20]
sub eax, 0x10
xor esi, esi
push eax
mov dword [esp + 0x20], esi
call fcn.004051c0
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x18]
sub eax, 0x10
push eax
mov dword [esp + 0x50], esi
call fcn.004051c0
add eax, 0x10
add esp, 8
mov dword [esp + 0x24], eax
mov esi, dword [ebx + 0x30]
mov byte [esp + 0x48], 1
cmp esi, dword [ebx + 0x34]
jbe 0x40918e
call fcn.0044f012
mov ebp, dword [ebx + 0x24]
mov dword [esp + 0x3c], esi
lea edi, [esi + 0xc]
mov esi, dword [ebx + 0x34]
mov dword [esp + 0x20], edi
cmp dword [ebx + 0x30], esi
jbe 0x4091a9
call fcn.0044f012
mov eax, dword [ebx + 0x24]
test ebp, ebp
je 0x4091b4
cmp ebp, eax
je 0x4091b9
call fcn.0044f012
cmp dword [esp + 0x3c], esi
je 0x409535
push 0x46fb9c
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00406780
add esp, 0xc
mov esi, eax
mov byte [esp + 0x48], 2
test ebp, ebp
jne 0x409449
call fcn.0044f012
xor eax, eax
mov edx, dword [esp + 0x3c]
cmp edx, dword [eax + 0x10]
jb 0x4091fe
call fcn.0044f012
push edi
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004066b0
add esp, 0xc
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x48], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x46fb9c
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00406780
add esp, 0xc
mov esi, eax
mov byte [esp + 0x48], 5
test ebp, ebp
jne 0x409451
call fcn.0044f012
xor eax, eax
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 0x10]
jb 0x40926d
call fcn.0044f012
push edi
lea edx, [esp + 0x18]
push esi
push edx
call fcn.004066b0
add esp, 0xc
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x48], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.004051c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00417160
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [0x46f320]
test eax, eax
je 0x409476
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
call fcn.00404ee0
test eax, eax
je 0x4092f9
lea edi, [esp + 0x14]
call fcn.00408ea0
test al, al
je 0x4094be
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00417270
add esp, 0xc
test al, al
je 0x4094be
test ebp, ebp
jne 0x409459
call fcn.0044f012
xor eax, eax
mov esi, dword [esp + 0x3c]
cmp esi, dword [eax + 0x10]
jb 0x409332
call fcn.0044f012
mov edi, dword [esp + 0x20]
mov dword [edi - 8], 0
test ebp, ebp
jne 0x409461
call fcn.0044f012
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x409356
call fcn.0044f012
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
call fcn.004051c0
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
push 0x46fd08
push esi
mov byte [esp + 0x54], 8
call fcn.0044ee22
add esp, 0xc
test eax, eax
jne 0x4093b8
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call fcn.004055e0
mov dword [esp + 0x1c], eax
test eax, eax
jge 0x4093b8
test ebp, ebp
jne 0x409469
call fcn.0044f012
xor eax, eax
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 0x10]
jb 0x4093b1
call fcn.0044f012
mov dword [edi - 8], 1
lea eax, [esi - 0x10]
mov byte [esp + 0x48], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4093d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x48], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x48], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409423
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x409471
call fcn.0044f012
xor eax, eax
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 0x10]
jb 0x40943c
call fcn.0044f012
add dword [esp + 0x3c], 0x18
add edi, 0x18
jmp 0x409198
mov eax, dword [ebp]
jmp 0x4091f0
mov eax, dword [ebp]
jmp 0x40925f
mov eax, dword [ebp]
jmp 0x409324
mov eax, dword [ebp]
jmp 0x40934c
mov eax, dword [ebp]
jmp 0x4093a3
mov eax, dword [ebp]
jmp 0x40942e
test ebp, ebp
jne 0x4094b9
call fcn.0044f012
xor eax, eax
mov esi, dword [esp + 0x3c]
cmp esi, dword [eax + 0x10]
jb 0x40948f
call fcn.0044f012
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esi + 4], 1
mov dword [esp + 0x1c], 0x80040073
mov byte [esp + 0x48], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x409504
mov eax, dword [ebp]
jmp 0x409481
test ebp, ebp
je 0x4094c7
mov eax, dword [ebp]
jmp 0x4094ce
call fcn.0044f012
xor eax, eax
mov esi, dword [esp + 0x3c]
cmp esi, dword [eax + 0x10]
jb 0x4094dc
call fcn.0044f012
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x48], 4
mov dword [esp + 0x1c], 0x80040073
mov dword [esi + 4], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x48], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409535
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x48], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40955a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret