Function at 0x445e20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5224cb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x57c8b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4463a8
mov ebx, dword [ebp + 8]
mov ecx, edx
add ebx, 4
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445e63
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0040a4c0
push 0x533978
push 0x53d1d8
mov ecx, ebx
call fcn.00416690
mov ecx, dword [ebx]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x445ea7
lea eax, [ecx - 0x10]
push eax
call fcn.0040ad50
add esp, 4
add eax, 0x10
jmp 0x445eda
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x445eb7
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x445ec3
call fcn.0040b790
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.00411430
mov eax, dword [ebp + 0xc]
mov edx, 0x533978
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x445f07
test si, si
je 0x445f03
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x445f07
add ecx, 4
add edx, 4
test si, si
jne 0x445ee1
xor esi, esi
jmp 0x445f0c
sbb esi, esi
or esi, 1
or edi, 0xffffffff
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x445f26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x400
mov dword [ebp - 0x10], ecx
test esi, esi
jne 0x445fc6
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x445f5b
lea eax, [edx - 0x10]
push eax
call fcn.0040ad50
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
jmp 0x445f86
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x445f6b
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x445f77
call fcn.0040b790
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [ebx]
lea ecx, [ebp + 0xc]
call fcn.00411430
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.004119e0
mov ecx, 0xc00
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 0x10], ecx
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x445fc6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0xc00
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
mov ebx, ecx
add esi, 4
push esi
call fcn.004565e0
add esp, 4
test eax, eax
jne 0x446365
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0xf]
call fcn.00444810
or dword [ebp - 0x10], 1
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00443bc0
add esp, 0xc
push dword [eax]
or ebx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x446134
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xf]
call fcn.004448f0
push eax
mov ecx, ebx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x2c]
or ecx, 4
push esi
push eax
mov dword [ebp - 0x10], ecx
call fcn.00443bc0
add esp, 0xc
push dword [eax]
or ebx, 0xc
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x446134
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0xf]
call fcn.00444580
push eax
mov ecx, ebx
mov dword [ebp - 4], 5
lea eax, [ebp - 0x24]
or ecx, 0x10
push esi
push eax
mov dword [ebp - 0x10], ecx
call fcn.00443bc0
add esp, 0xc
push dword [eax]
or ebx, 0x30
mov dword [ebp - 4], 6
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x446134
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xf]
call fcn.00443e60
push eax
mov ecx, ebx
mov dword [ebp - 4], 7
lea eax, [ebp - 0x1c]
or ecx, 0x40
push esi
push eax
mov dword [ebp - 0x10], ecx
call fcn.00443bc0
add esp, 0xc
push dword [eax]
or ebx, 0xc0
mov dword [ebp - 4], 8
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x446134
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0xf]
call fcn.004441e0
push eax
mov ecx, ebx
mov dword [ebp - 4], 9
lea eax, [ebp - 0x14]
or ecx, 0x100
push esi
push eax
mov dword [ebp - 0x10], ecx
call fcn.00443bc0
add esp, 0xc
or ebx, 0x300
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp + 0xf], 0
test eax, eax
je 0x446138
mov byte [ebp + 0xf], 1
test ebx, 0x200
je 0x446163
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffdff
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446163
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 8
test ebx, 0x100
je 0x446195
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffeff
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446195
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 7
test bl, bl
jns 0x4461c3
mov edx, dword [ebp - 0x1c]
and ebx, 0xffffff7f
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4461c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 6
test bl, 0x40
je 0x4461ef
mov edx, dword [ebp - 0x20]
and ebx, 0xffffffbf
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4461ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 5
test bl, 0x20
je 0x44621b
mov edx, dword [ebp - 0x24]
and ebx, 0xffffffdf
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44621b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
test bl, 0x10
je 0x446247
mov edx, dword [ebp - 0x28]
and ebx, 0xffffffef
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446247
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 3
test bl, 8
je 0x446273
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffff7
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446273
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 2
test bl, 4
je 0x44629f
mov edx, dword [ebp - 0x30]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44629f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
and ebx, 0xfffffffd
mov dword [ebp - 4], 1
add edx, 0xfffffff0
mov dword [ebp - 0x10], ebx
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4462c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4462e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
jne 0x446365
push 0x533978
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00443c70
mov ecx, dword [ebp + 8]
add ecx, 0x250
mov dword [ebp - 4], 0xa
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00443bc0
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.004119e0
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446344
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x446365
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x53d1dc
lea eax, [ebp + 8]
push esi
push eax
call fcn.00443c70
add esp, 0xc
push eax
mov ecx, 0x583e3c
mov dword [ebp - 4], 0xc
call fcn.00447a70
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4463a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8