Function at 0x45fbe5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x754
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
call fcn.0045ea95
lea ecx, [ebp - 0x80]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0045df04
mov ecx, dword [0x4d4390]
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x45fcac
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea ecx, [ebp - 0x44]
call fcn.00421880
mov edi, 0x40430c
lea ecx, [ebp - 0x44]
push edi
call fcn.00422070
test al, al
je 0x45fc5a
push edi
lea ecx, [ebp - 0x24]
call fcn.0041c2b0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x44]
call fcn.004227b0
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0041ddb0
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x44]
call fcn.00422bd0
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x80]
call fcn.0045df7a
mov bl, al
lea ecx, [ebp - 0x24]
neg bl
sbb bl, bl
xor edi, edi
push edi
push 1
call fcn.0041d9f0
lea ecx, [ebp - 0x44]
add bl, 1
je 0x45fca5
mov esi, dword [ebp + 8]
mov dword [esi], 0x65
mov dword [esi + 4], edi
call fcn.004219a0
jmp 0x45ff33
call fcn.004219a0
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0045eeec
pop ecx
pop ecx
test al, al
je 0x45fcd2
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 4], ecx
jmp 0x45ff33
xor eax, eax
mov word [ebp - 0x84], ax
mov word [ebp - 0x28c], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28c]
push eax
push esi
call fcn.0045ecc4
add esp, 0xc
test al, al
je 0x45fcbf
mov ecx, dword [0x4d4390]
test ecx, ecx
je 0x45fd2f
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x45fd2f
mov ecx, dword [0x4d4390]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x45fd2f
mov esi, dword [ebp + 8]
mov dword [esi], 0x12c
mov dword [esi + 4], ebx
jmp 0x45ff33
xor eax, eax
mov word [ebp - 0x49c], ax
mov word [ebp - 0x6a4], ax
mov word [ebp - 0x290], ax
mov word [ebp - 0x498], ax
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x28c]
push eax
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045f832
add esp, 0x18
mov edi, dword [eax]
test edi, edi
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
sete al
mov byte [ebp - 1], al
test al, al
jne 0x45fe43
push 0x104
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x104
cmp eax, esi
jae 0x45fe43
test eax, eax
je 0x45fe43
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00460005
pop ecx
pop ecx
test eax, eax
je 0x45fe43
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x498]
push esi
push eax
call fcn.004600c8
push 0x4015f4
lea eax, [ebp - 0x498]
push esi
push eax
call fcn.004600a0
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x6a4]
push esi
push eax
call fcn.004600c8
push 0x4016bc
lea eax, [ebp - 0x6a4]
push esi
push eax
call fcn.004600a0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x498]
add esp, 0x30
push eax
call esi
cmp eax, 0xffffffff
je 0x45fe43
lea eax, [ebp - 0x6a4]
push eax
call esi
cmp eax, 0xffffffff
je 0x45fe43
mov esi, ebx
mov edi, ebx
mov dword [ebp - 8], esi
test edi, edi
jne 0x45fe56
mov ecx, dword [0x4d4390]
test ecx, ecx
je 0x45fe56
mov eax, dword [ecx]
call dword [eax + 0x20]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
test edi, edi
jne 0x45fefc
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045f0ef
add esp, 0x10
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 8], esi
test edi, edi
je 0x45fefc
push 2
call fcn.0041b480
pop ecx
test al, al
je 0x45feec
push 2
push 0x40d
xor ebx, ebx
lea ecx, [ebp - 0x754]
push 0x401598
inc ebx
call fcn.0041b540
push esi
push 0x401560
push edi
add eax, 8
push 0x401574
push eax
call fcn.004200c0
pop ecx
pop ecx
mov ecx, eax
call fcn.0041ca70
push eax
call fcn.004200c0
pop ecx
pop ecx
mov ecx, eax
call fcn.0041ca70
test bl, 1
je 0x45fefc
lea ecx, [ebp - 0x754]
call fcn.0041b6f0
cmp byte [ebp - 1], 0
je 0x45ff28
call fcn.0045f7f7
test al, al
je 0x45ff28
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.0045e9f2
add esp, 0xc
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi], edi
mov dword [esi + 4], eax
lea ecx, [ebp - 0x80]
call fcn.0045df2b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret