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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b7d2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x566090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24c], esi
mov edi, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], eax
test edi, edi
je 0x45acec
movzx eax, word [edi]
test ax, ax
je 0x45acec
mov dword [ebp - 0x90], 0
xor ecx, ecx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], cx
mov dword [ebp - 4], 1
cmp eax, 0x5c
jne 0x45a66c
cmp word [edi + 2], ax
je 0x45a66c
push edi
lea eax, [ebp - 0xc0]
push eax
call fcn.0045ba50
push eax
lea ecx, [ebp - 0x90]
call fcn.00444030
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x45a68d
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a660
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ad0e
push edx
push ecx
call fcn.004fc7e0
add esp, 8
jmp 0x45a68d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45a671
sub eax, edx
lea ecx, [ebp - 0x90]
sar eax, 1
push eax
push edi
call fcn.00445880
call fcn.00441aa0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x45a879
cmp dword [ebp - 0x7c], 8
lea esi, [ebp - 0x90]
lea edx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x80728054
cmovae esi, dword [ebp - 0x90]
lea ecx, [ebp - 0xc0]
xor eax, eax
mov dword [ebp - 0x74], 0x80698079
mov dword [ebp - 0x70], 0x8067806e
mov dword [ebp - 0x6c], 0x80748020
mov dword [ebp - 0x68], 0x8020806f
mov dword [ebp - 0x64], 0x80728061
mov dword [ebp - 0x60], 0x80688063
mov dword [ebp - 0x5c], 0x80768069
mov dword [ebp - 0x58], 0x80208065
mov dword [ebp - 0x54], 0x80698066
mov dword [ebp - 0x50], 0x8065806c
mov dword [ebp - 0x4c], 0x805b8020
mov dword [ebp - 0x48], 0x807d807b
mov dword [ebp - 0x44], 0x8020805d
mov dword [ebp - 0x40], 0x803e802d
mov dword [ebp - 0x3c], 0x805b8020
mov dword [ebp - 0x38], 0x807d807b
mov dword [ebp - 0x34], 0x8000805d
mov word [ebp - 0x30], ax
call fcn.00419a70
mov byte [ebp - 4], 2
lea edx, [ebp - 0xc0]
cmp dword [ebp - 0xac], 8
mov eax, dword [ebp - 0x24c]
cmovae edx, dword [ebp - 0xc0]
mov ecx, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x244], 9
mov dword [ebp - 0x28], edi
lea esi, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a780
sub ecx, esi
sub esp, 0x10
mov eax, esp
sar ecx, 1
lea esi, [ebp - 0x28]
push ecx
push edx
lea ecx, [ebp - 0xd8]
mov dword [eax], 0xcc
mov dword [eax + 4], 0
mov dword [eax + 8], esi
call fcn.00426fd0
add esp, 0x18
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x244], 0x1b
call fcn.00444e70
mov dword [ebp - 4], 4
lea edi, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
lea ecx, [ebp - 0x160]
mov eax, 0x3f
mov dword [ebp - 0x24], 0x290028
cmovae edi, dword [ebp - 0xa8]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x20], 0x2d0020
mov dword [ebp - 0x1c], 0x20
call fcn.0045c530
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x118]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x1c8]
call fcn.0045c5c0
add esp, 4
lea ecx, [ebp - 0x24]
mov edx, eax
push ecx
lea ecx, [ebp - 0x238]
call fcn.0045c760
add esp, 4
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 0
push eax
call fcn.0043ebb0
mov esi, dword [ebp - 0x24c]
add esp, 0x14
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x240]
test al, 4
je 0x45a8f6
mov edx, dword [ebp - 0x94]
and eax, 0xfffffffb
mov dword [ebp - 0x240], eax
cmp edx, 8
jb 0x45a8d9
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a8c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ad13
push edx
push ecx
call fcn.004fc7e0
mov eax, dword [ebp - 0x240]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], cx
mov dword [ebp - 4], 2
test al, 2
je 0x45a96d
mov edx, dword [ebp - 0xc4]
and eax, 0xfffffffd
mov dword [ebp - 0x240], eax
cmp edx, 8
jb 0x45a950
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a940
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ad13
push edx
push ecx
call fcn.004fc7e0
mov eax, dword [ebp - 0x240]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], cx
mov dword [ebp - 4], 1
test al, 1
je 0x45a9b8
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x45a9b8
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a9ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ad13
push edx
push ecx
call fcn.004fc7e0
add esp, 8
cmp dword [ebp - 0x80], 0
je 0x45aca4
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45aa41
test al, 0x10
jne 0x45aa41
lea ecx, [ebp - 0xf8]
call fcn.0045a4e0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x7c], 8
lea ecx, [ebp - 0xf4]
push dword [ebp - 0x80]
cmovae eax, dword [ebp - 0x90]
push eax
mov dword [ebp - 0xf8], 1
call fcn.00445880
lea eax, [ebp - 0xf8]
mov ecx, esi
push eax
call fcn.0045c410
lea ecx, [ebp - 0xf4]
mov byte [ebp - 0x239], 1
call fcn.00445ad0
jmp 0x45acab
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x78]
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x78], 0x80728045
mov dword [ebp - 0x74], 0x806f8072
mov dword [ebp - 0x70], 0x80208072
mov dword [ebp - 0x6c], 0x80618063
mov dword [ebp - 0x68], 0x806c806c
mov dword [ebp - 0x64], 0x806e8069
mov dword [ebp - 0x60], 0x80208067
mov dword [ebp - 0x5c], 0x80658047
mov dword [ebp - 0x58], 0x80468074
mov dword [ebp - 0x54], 0x806c8069
mov dword [ebp - 0x50], 0x80418065
mov dword [ebp - 0x4c], 0x80748074
mov dword [ebp - 0x48], 0x80698072
mov dword [ebp - 0x44], 0x80758062
mov dword [ebp - 0x40], 0x80658074
mov dword [ebp - 0x3c], 0x80578073
mov dword [ebp - 0x38], 0x8020803a
mov dword [ebp - 0x34], 0x807d807b
mov dword [ebp - 0x30], 0x8000
call fcn.00419a70
mov byte [ebp - 4], 5
lea eax, [ebp - 0xd8]
cmp dword [ebp - 0xc4], 8
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0xc0]
cmovae eax, dword [ebp - 0xd8]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0041d930
add esp, 4
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 6
call fcn.00444e70
mov byte [ebp - 4], 7
lea edi, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x24], 0x290028
cmovae edi, dword [ebp - 0xa8]
mov dword [ebp - 0x20], 0x2d0020
mov dword [ebp - 0x1c], 0x20
call fcn.0045c530
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x118]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x1c8]
call fcn.0045c5c0
add esp, 4
lea ecx, [ebp - 0x24]
mov edx, eax
push ecx
lea ecx, [ebp - 0x238]
call fcn.0045c760
add esp, 4
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 8
push eax
call fcn.0043ebb0
mov edx, dword [ebp - 0x94]
add esp, 0x14
cmp edx, 8
jb 0x45abee
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45abe4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ad18
push edx
push ecx
call fcn.004fc7e0
add esp, 8
mov edx, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
cmp edx, 8
jb 0x45ac4b
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ac41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ad18
push edx
push ecx
call fcn.004fc7e0
add esp, 8
mov edx, dword [ebp - 0xc4]
xor eax, eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
cmp edx, 8
jb 0x45aca4
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ac9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ad18
push edx
push ecx
call fcn.004fc7e0
add esp, 8
mov byte [ebp - 0x239], 0
mov edx, dword [ebp - 0x7c]
cmp edx, 8
jb 0x45ace4
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45acda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ad1d
push edx
push ecx
call fcn.004fc7e0
add esp, 8
mov al, byte [ebp - 0x239]
jmp 0x45acee
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0050175f
call fcn.0050175f
call fcn.0050175f
call fcn.0050175f
int3