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

Disassembly:
push 0xffffffffffffffff
push 0x63c26e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x650
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x90]
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x40], ebx
jne 0x445d27
lea eax, [ebx + 0x94]
lea ecx, [esp + 0x260]
lea edx, [esp + 0x460]
push ecx
push edx
lea ecx, [esp + 0x68]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
call fcn.0060a943
xor eax, eax
add esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebp
mov word [esp + 0x14], bp
mov ecx, 0x6c900c
mov dword [esp + 0x668], ebp
test ecx, ecx
je 0x445ea6
lea edx, [esp + 0x4c]
test edx, edx
je 0x445ea6
lea ecx, [esp + 0x60]
test ecx, ecx
je 0x445ea6
lea ecx, [esp + 0x28]
call fcn.004027c0
push ebp
push 0x6c900c
lea ecx, [esp + 0x30]
mov byte [esp + 0x670], 1
call fcn.004027e0
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x1c]
push edx
call fcn.00401ee0
lea eax, [esp + 0x60]
mov bl, 2
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x66c], bl
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0x668], 3
call fcn.00401070
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
je 0x445e6a
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x34]
call fcn.00401f10
push eax
lea ecx, [esp + 0x20]
call fcn.00401f10
push eax
lea ecx, [esp + 0x30]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x668], bl
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x668], 1
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x668], 0
call fcn.00401070
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x40]
xor ebp, ebp
cmp dword [0x6fcacc], ebp
je 0x445ec6
cmp eax, ebp
jne 0x445eb6
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x445ee1
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x445ece
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004a5e30
add esp, 8
test eax, eax
jne 0x446211
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov word [esp + 0x20], bp
mov eax, dword [esp + 0x10]
mov byte [esp + 0x668], 4
cmp eax, ebp
jne 0x445f02
lea eax, [esp + 0x14]
mov esi, dword [0x6fdc00]
mov edi, dword [0x6fca90]
cmp esi, ebp
je 0x445fec
cmp eax, ebp
je 0x445fec
push eax
lea ecx, [esp + 0x58]
call fcn.00401ee0
mov bl, 5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x668], bl
call fcn.00401070
lea ecx, [esp + 0x28]
call fcn.004027c0
push edi
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x670], 6
call fcn.004027e0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x54]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x1c], edi
je 0x445fc5
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x54]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x668], bl
call fcn.00401070
lea ecx, [esp + 0x54]
mov byte [esp + 0x668], 4
call fcn.00401070
mov ebx, dword [esp + 0x40]
xor ebp, ebp
push ebp
push 0x6c9094
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
mov word [esp + 0x40], bp
call fcn.004027e0
mov eax, dword [esp + 0x34]
mov byte [esp + 0x668], 7
cmp eax, ebp
mov ecx, eax
jne 0x44601e
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x44602a
lea eax, [esp + 0x20]
mov edx, dword [ebx + 0x1c]
push 4
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4462ce
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x44604d
lea eax, [esp + 0x14]
push eax
call fcn.00609a4e
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, ebp
mov edx, ecx
jne 0x446064
lea edx, [esp + 0x14]
cmp word [edx + eax*2 - 2], 0x5c
je 0x44610b
mov eax, 0x6c91c0
test eax, eax
je 0x44610b
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x446107
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x44609f
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x4460a1
xor esi, esi
push 0x6c91c0
call fcn.00609a4e
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x446107
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4460df
push eax
push esi
call fcn.00609a95
push 0x6c91c0
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x4460ed
push 0x6c91c0
push esi
call fcn.00609a95
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00401070
push esi
mov dword [esp + 0x14], esi
call fcn.00609a4e
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
jne 0x446113
lea ecx, [esp + 0x14]
push 0x6cd7a4
push ecx
call fcn.0060a3e0
add esp, 8
test eax, eax
je 0x44613a
push 0x6c91c0
push 0x6cd7a4
lea ecx, [esp + 0x18]
call fcn.004434d0
jmp 0x446107
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x446146
lea eax, [esp + 0x14]
add eax, 6
push 0x5c
push eax
call fcn.0060a17b
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4461ef
mov bl, 8
lea ecx, [esp + 0x10]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0x668], bl
call fcn.00401f10
mov edi, esi
lea ecx, [esp + 0x28]
sub edi, eax
sar edi, 1
call fcn.00401f10
push 1
lea ecx, [esp + 0x2c]
mov word [eax + edi*2], bp
call fcn.00401f10
push eax
call fcn.004a5e30
add esp, 8
test eax, eax
jne 0x4461c6
push 1
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
call fcn.004a6010
add esp, 8
test eax, eax
je 0x446243
add esi, 2
push 0x5c
push esi
call fcn.0060a17b
add esp, 8
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x668], 7
call fcn.00401070
cmp esi, ebp
jne 0x446160
lea ecx, [esp + 0x34]
mov byte [esp + 0x668], 4
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x668], 0
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x668], 0xffffffff
call fcn.00401070
mov eax, 1
mov ecx, dword [esp + 0x660]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x65c
ret
mov edx, dword [0x6f7b78]
mov dword [esp + 0x44], edx
push ebp
lea eax, [esp + 0x4c]
push ebp
push eax
push 0x400
mov byte [esp + 0x678], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x48]
mov edx, dword [0x6fdbfc]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call fcn.0061fae1
mov ecx, dword [esp + 0x54]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push 0x30
push 0x6c9094
push edx
call fcn.00625263
lea ecx, [esp + 0x44]
mov byte [esp + 0x668], bl
call fcn.00622d8a
lea ecx, [esp + 0x28]
mov byte [esp + 0x668], 7
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0x668], 4
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x668], 0
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x668], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x44622a