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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, ecx
mov cl, 1
mov dword [esp + 0x28], eax
push ebx
push esi
mov al, byte [eax + 1]
cmp cl, al
mov cl, 2
push edi
sbb edx, edx
and edx, dword [0x4ddf1c]
cmp cl, al
mov cl, 3
mov dword [esp + 0x18], edx
sbb edi, edi
and edi, dword [0x4ddf20]
cmp cl, al
mov dword [esp + 0x2c], edi
sbb ecx, ecx
and ecx, dword [0x4ddf24]
mov dword [esp + 0x1c], ecx
mov cl, 4
cmp cl, al
sbb ecx, ecx
and ecx, dword [0x4ddf28]
mov dword [esp + 0x20], ecx
mov cl, 5
cmp cl, al
mov cl, 6
sbb ebx, ebx
and ebx, dword [0x4ddf2c]
cmp cl, al
mov cl, 7
sbb esi, esi
and esi, dword [0x4ddf30]
cmp cl, al
sbb eax, eax
and eax, dword [0x4ddf34]
mov dword [esp + 0x24], eax
test edx, edx
je 0x457663
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edx
call fcn.0047b2f0
test edi, edi
je 0x457676
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0047b2f0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45768d
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.0047b2f0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4576a4
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.0047b2f0
test ebx, ebx
je 0x4576b7
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0047b2f0
test esi, esi
je 0x4576ca
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0047b2f0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4576e1
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.0047b2f0
mov edi, dword [ebp + 8]
push 0x2a
push edi
mov byte [esp + 0x1b], 0
call fcn.00492ca4
add esp, 8
test eax, eax
jne 0x457744
push 0x3f
push edi
call fcn.00492ca4
add esp, 8
test eax, eax
jne 0x457744
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45775f
mov eax, dword [0x4d89c0]
test byte [eax + 0x100], 1
jne 0x45794c
mov ecx, dword [0x4db768]
push 1
push 0
push 0xffffffffffffffff
push 0x4c8740
call fcn.0047b2f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x457713
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x4ae800
push 1
push 0
push 0x4ae810
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x45792d
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push 0x4ae820
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x457923
mov eax, dword [esp + 0x28]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x457919
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4577ea
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push 2
push 0
push 0x104
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov ecx, edi
push eax
call fcn.0047b2f0
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x457818
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push 0x104
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov ecx, edi
push eax
call fcn.0047b2f0
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x457846
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push 0x104
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x28]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov ecx, edi
push eax
call fcn.0047b2f0
mov edi, dword [esp + 0x20]
test edi, edi
je 0x457874
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push 0x104
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov ecx, edi
push eax
call fcn.0047b2f0
test ebx, ebx
jne 0x45787c
test esi, esi
je 0x4578d7
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x104
lea ecx, [esp + 0x40]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x40]
test ebx, ebx
je 0x4578ab
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
call fcn.0047b2f0
test esi, esi
je 0x4578d7
cmp word [esp + 0x38], 0
mov ecx, esi
je 0x4578ca
mov eax, dword [esp + 0x18]
inc eax
push 0x18
cdq
push edx
push eax
call fcn.00401330
jmp 0x4578d7
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0047b2f0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4578fe
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, esi
push 0x18
cdq
push edx
push eax
call fcn.00401330
mov ecx, dword [0x4db768]
push 1
push 0
push 0xffffffffffffffff
push 0x4b41e8
call fcn.0047b2f0
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [esp + 0x13], 0
je 0x457713
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x34]
push 0x4c602c
push 0
push 0x4c8740
call fcn.00434ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4