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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4f08
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
movzx eax, word [esi]
cmp eax, 0x61
jb 0x452cba
cmp eax, 0x7a
jbe 0x452cc3
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x452cd1
cmp word [esi + 2], 0x3a
jne 0x452cd1
mov ecx, 2
jmp 0x452cd3
xor ecx, ecx
movzx eax, word [esi + ecx*2]
or edi, 0xffffffff
test ax, ax
je 0x452f7e
cmp ax, 0x3a
jne 0x452cf4
test edi, edi
mov eax, ecx
cmovns eax, edi
mov edi, eax
jmp 0x452d03
cmp ax, 0x5c
je 0x452d00
cmp ax, 0x2f
jne 0x452d03
or edi, 0xffffffff
movzx eax, word [esi + ecx*2 + 2]
inc ecx
test ax, ax
jne 0x452ce3
test edi, edi
js 0x452f7e
cmp word [esi + edi*2 + 2], 0
lea eax, [esi + edi*2]
je 0x452f7e
push eax
lea ecx, [ebp - 0x2c]
call fcn.00452230
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00452230
mov byte [ebp - 4], 1
cmp edi, dword [ebp - 0x1c]
jae 0x452d55
mov ecx, dword [ebp - 0x20]
mov eax, edi
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ecx + edi*2], ax
mov ecx, dword [ebp - 0x28]
cmp ecx, 6
jbe 0x452d74
mov eax, dword [ebp - 0x2c]
add ecx, 0xfffffffa
mov edx, 0x4f2394
lea ecx, [eax + ecx*2]
call fcn.00451ea0
test al, al
jne 0x452d81
push str.:_DATA
lea ecx, [ebp - 0x2c]
call fcn.004523d0
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx]
cmp eax, 0x61
jb 0x452d91
cmp eax, 0x7a
jbe 0x452d9a
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x452ddb
cmp word [ecx + 2], 0x3a
jne 0x452ddb
cmp edi, 2
je 0x452db2
cmp edi, 3
jne 0x452ddb
cmp word [ecx + 4], 0x5c
jne 0x452ddb
mov ecx, ebx
call fcn.00452c10
mov eax, dword [ebx + 0x28]
lea ecx, [ebx + 0x28]
xor edx, edx
mov dword [ecx + 4], 0
mov word [eax], dx
cmp edi, 2
jne 0x452deb
lea eax, [ebp - 0x20]
push eax
call fcn.00452360
jmp 0x452deb
push ecx
mov ecx, ebx
call fcn.00452c80
test al, al
je 0x452f6b
and dword [ebx + 0x20], 0xfffffbef
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x3c], 0xffffffff
mov byte [ebp - 4], 2
xor ecx, ecx
mov esi, dword [ebp - 0x1c]
mov edx, 2
mov dword [ebp - 0x38], 0
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d929
lea ecx, [esi*2 + 2]
mov dword [ebp - 0x38], eax
push ecx
mov ecx, dword [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call fcn.004a5400
push 8
mov byte [ebp - 4], 3
call fcn.0048d929
xor ecx, ecx
mov dword [ebp - 0x54], eax
add esp, 0x14
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 3
mov word [eax], cx
lea eax, [ebp + 0xb]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00452b20
test al, al
je 0x452f2d
mov edi, dword [ebp - 0x2c]
nop dword [eax + eax]
cmp byte [ebp + 0xb], 0
je 0x452f25
mov esi, dword [ebp - 0x54]
mov edx, edi
mov ecx, esi
call fcn.00451d10
test al, al
jne 0x452eee
push esi
mov byte [ebp - 4], 3
call fcn.0048d8c3
push 8
call fcn.0048d929
xor ecx, ecx
mov dword [ebp - 0x54], eax
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 3
mov word [eax], cx
lea eax, [ebp + 0xb]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00452b20
test al, al
jne 0x452e90
jmp 0x452f2d
mov eax, dword [ebp - 0x50]
cmp eax, 7
jbe 0x452f06
lea ecx, [eax - 6]
cmp ecx, eax
jae 0x452f06
xor eax, eax
mov dword [ebp - 0x50], ecx
mov word [esi + ecx*2], ax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebx + 0x28]
call fcn.00452440
mov eax, dword [ebp - 0x44]
mov dword [ebx], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 4], eax
mov byte [ebx + 0x24], 1
mov bl, 1
jmp 0x452f35
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x54]
xor bl, bl
mov edi, dword [ebp - 0x2c]
push esi
call fcn.0048d8c3
push dword [ebp - 0x38]
call fcn.0048d8c3
mov eax, dword [ebp - 0x3c]
add esp, 8
cmp eax, 0xffffffff
je 0x452f55
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.0048d8c3
push edi
call fcn.0048d8c3
add esp, 8
jmp 0x45305e
push dword [ebp - 0x20]
call fcn.0048d8c3
push dword [ebp - 0x2c]
call fcn.0048d8c3
add esp, 8
mov dword [ebp - 0x10], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 5
call fcn.00452a90
test al, al
jne 0x45304d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x452fc6
cmp edi, 0x35
je 0x452fc6
cmp edi, 0x43
je 0x452fc6
cmp edi, 0x7b
je 0x452fc6
cmp edi, 0xa1
jne 0x4531d2
movzx eax, word [esi]
cmp eax, 0x5c
je 0x452fd3
cmp eax, 0x2f
jne 0x453000
movzx ecx, word [esi + 2]
cmp ecx, 0x5c
je 0x452fe1
cmp ecx, 0x2f
jne 0x453000
cmp word [esi + 4], 0x3f
jne 0x453000
movzx ecx, word [esi + 6]
cmp ecx, 0x5c
je 0x452ff6
cmp ecx, 0x2f
jne 0x453000
mov ecx, 8
lea edx, [ecx + 6]
jmp 0x453005
xor ecx, ecx
lea edx, [ecx + 6]
mov dword [ebp + 8], ecx
cmp eax, 0x5c
je 0x453012
cmp eax, 0x2f
jne 0x453074
cmp word [esi + 2], 0
jne 0x453074
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
je 0x4531d2
test dl, 0x10
je 0x4531d2
mov ecx, ebx
call fcn.00452c10
mov eax, dword [ebx + 0x28]
xor ecx, ecx
mov dword [ebx + 0x2c], 0
mov word [eax], cx
mov dword [ebx + 0x20], edx
mov bl, 1
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x45305e
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [ecx + esi]
cmp eax, 0x61
jb 0x453082
cmp eax, 0x7a
jbe 0x45308b
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x4530f9
cmp word [ecx + esi + 2], 0x3a
jne 0x4530f9
movzx eax, word [ecx + esi + 4]
cmp eax, 0x5c
je 0x4530a2
cmp eax, 0x2f
jne 0x4530f9
cmp word [edx + esi], 0
jne 0x4530f9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4531d2
test al, 0x10
je 0x4531d2
mov ecx, ebx
call fcn.00452c10
mov dword [ebx + 0x20], eax
add ebx, 0x28
mov eax, dword [ebp + 8]
mov ecx, ebx
add eax, esi
push eax
call fcn.004522f0
cmp dword [ebx + 4], 2
jbe 0x45304d
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], 2
mov word [eax + 4], cx
jmp 0x45304d
mov ecx, esi
call fcn.00453360
test eax, eax
je 0x4531d2
cmp word [esi + eax*2], 0
lea eax, [esi + eax*2]
mov dword [ebp - 0x14], eax
je 0x4531d2
mov ecx, eax
call fcn.004532b0
test eax, eax
jns 0x4531d2
push esi
lea ecx, [ebp - 0x20]
call fcn.00452230
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], edx
jne 0x453156
mov eax, edx
lea ecx, [ebp - 0x20]
shr eax, 1
add edx, 0x10
add eax, edx
and eax, 0xfffffff0
dec eax
push eax
call fcn.00452050
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, 0x5c
push 0x2a
mov word [ecx + edx*2], ax
lea eax, [edx + 1]
xor edx, edx
mov dword [ebp - 0x1c], eax
mov word [ecx + eax*2], dx
lea ecx, [ebp - 0x20]
call fcn.00402960
push ebx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0
call fcn.00452a90
test al, al
je 0x4531a6
lea eax, [ebx + 0x28]
mov ecx, eax
mov dword [ebp + 8], eax
call fcn.00452a00
test al, al
je 0x4531a2
mov ecx, dword [ebp + 8]
jmp 0x4531f1
mov byte [ebp + 0xb], 1
mov ecx, esi
call fcn.00452c60
cmp byte [ebp + 0xb], 0
mov edx, eax
jne 0x4531d9
cmp edx, 0xffffffff
je 0x4531bf
test dl, 0x10
jne 0x4531d9
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
push eax
call fcn.0048d8c3
add esp, 4
xor bl, bl
jmp 0x45304f
mov ecx, ebx
call fcn.00452c10
cmp edx, 0xffffffff
lea ecx, [ebx + 0x28]
mov eax, 0x10
cmovne eax, edx
mov dword [ebx + 0x20], eax
push dword [ebp - 0x14]
call fcn.004522f0
mov eax, dword [ebp - 0x20]
push eax
call fcn.0048d8c3
add esp, 4
jmp 0x45304d