Function at 0x446080
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48d868
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
mov eax, dword [0x4b5930]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x90], ebx
jne 0x4460c8
push ebx
push 0x1000000
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [edi + 0x90], eax
mov eax, dword [edi + 0x74]
cmp eax, ebx
je 0x4460de
push eax
mov eax, dword [edi + 0x90]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x14]
push ecx
call fcn.00437680
add esp, 4
push 0xd
push str.DataBase.ref
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], ebx
call fcn.0040ef80
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x44633c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x44633c
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
call fcn.0041beb0
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 1
call fcn.004580d4
lea edx, [esp + 0x38]
push edx
push 0x8000
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 2
call fcn.004584e0
test eax, eax
jne 0x4461a8
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 1
call fcn.004581a8
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x38], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446344
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x446344
lea ecx, [esp + 0x28]
call fcn.00457fc7
mov esi, eax
mov ecx, esi
shr ecx, 0xc
add ecx, 2
push ebx
shl ecx, 0xc
push ecx
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
add esi, 0xfffffffc
push esi
push ebx
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 4
lea edx, [esp + 0x14]
mov ebx, eax
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
call fcn.00457de2
push esi
push ebx
lea ecx, [esp + 0x30]
call fcn.00457de2
push 0x4a1e14
call fcn.00448250
add esp, 4
push str.oL1KuloDgI1zIdIK
mov esi, eax
push str.aEg5gYjUxmAp3plE
push esi
call fcn.00447b00
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffffc
push eax
push ebx
call fcn.00447ee0
add esp, 8
test esi, esi
je 0x44624f
cmp dword [esi + 0x90], 0
je 0x44624f
mov ebx, esi
call fcn.00447dc0
mov ebx, dword [esp + 0x1c]
push esi
call fcn.00448160
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x90]
add esp, 4
add ecx, 1
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x20]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, ebx
lea esi, [esp + 0x1c]
mov dword [edi + 0x74], edx
call fcn.00444aa0
mov ecx, dword [edi + 0x74]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push ebx
push 0
push esi
mov byte [edx + ecx], 0
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [edi + 0x90]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 1
call fcn.004581a8
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x38], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4462fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446325
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x58], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret