Function at 0x445eb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45be90
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4ec560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.004047d0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test edi, edi
je 0x445f59
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + edi*2 - 2], 0x5c
je 0x445f52
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + edi*2 - 2], 0x2f
je 0x445f52
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + edi*2 - 2], 0x3a
jne 0x445f59
mov edx, 0x4716fc
jmp 0x445f5e
mov edx, 0x4716f4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445f63
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0043e700
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x298]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x446013
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], 0
call edi
cmp eax, 2
je 0x445fc2
call edi
cmp eax, 0x12
je 0x445fc2
call edi
mov edi, eax
jmp 0x445fc4
xor edi, edi
call fcn.0044b890
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4460fe
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4460f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4460f4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea edx, [ebp - 0x264]
lea edi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446020
mov ecx, dword [ebp - 0x29c]
lea eax, [ebp - 0x264]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.00434420
mov eax, dword [ebp - 0x290]
mov edi, dword [ebp - 0x294]
test eax, 0x400
je 0x446063
mov dword [ebx], 0
mov dword [edi], 0
jmp 0x4460da
and eax, 0x10
lea ecx, [ebp - 0x264]
or eax, 0x20
lea edx, [ecx + 2]
shr eax, 4
mov dword [ebx], eax
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446090
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00434420
push dword [ebp - 0x290]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00447e50
add esp, 8
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00405eb0
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [esi], 0
call fcn.0044b890
mov dword [esi + 4], eax
mov dword [ebp - 4], 4
jmp 0x445fd5
push edx
push ecx
call fcn.004385b2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004385c0
mov esp, ebp
pop ebp
ret