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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, ecx
mov edx, 3
mov dword [esp + 0x28], eax
mov cl, 1
push ebx
push esi
mov al, byte [eax + 1]
cmp cl, al
push edi
sbb ecx, ecx
and ecx, dword [0x4ddbb4]
mov dword [esp + 0x18], ecx
mov cl, 2
cmp cl, al
sbb ecx, ecx
and ecx, dword [0x4ddbb8]
cmp dl, al
mov dword [esp + 0x1c], ecx
sbb edx, edx
and edx, dword [0x4ddbbc]
mov dword [esp + 0x20], edx
mov dl, 4
cmp dl, al
sbb edx, edx
and edx, dword [0x4ddbc0]
mov dword [esp + 0x24], edx
mov dl, 5
cmp dl, al
mov dl, 6
sbb ebx, ebx
and ebx, dword [0x4ddbc4]
cmp dl, al
mov dl, 7
mov dword [esp + 0x2c], ebx
sbb esi, esi
and esi, dword [0x4ddbc8]
cmp dl, al
mov eax, dword [esp + 0x18]
sbb edi, edi
and edi, dword [0x4ddbcc]
test eax, eax
je 0x4585ae
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.0047faa0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4585bf
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0047faa0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4585d6
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.0047faa0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4585ed
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.0047faa0
test ebx, ebx
je 0x458600
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0047faa0
test esi, esi
je 0x458613
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0047faa0
test edi, edi
je 0x458626
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0047faa0
mov ebx, dword [ebp + 8]
push 0x2a
push ebx
mov byte [esp + 0x1b], 0
call fcn.00496bcf
add esp, 8
test eax, eax
jne 0x458689
push 0x3f
push ebx
call fcn.00496bcf
add esp, 8
test eax, eax
jne 0x458689
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4586a4
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne 0x458923
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x458658
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 0x4b17d0
push 1
push 0
push 0x4b17e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x458904
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push 0x4b17f0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4588fa
mov eax, dword [esp + 0x28]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x4588f0
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x45872f
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, ebx
push eax
call fcn.0047faa0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x45875d
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, ebx
push eax
call fcn.0047faa0
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x45878b
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, ebx
push eax
call fcn.0047faa0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4587b9
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, ebx
push eax
call fcn.0047faa0
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jne 0x4587c9
test esi, esi
je 0x45886c
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 0x4587f8
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
call fcn.0047faa0
test esi, esi
je 0x45886c
cmp word [esp + 0x38], 0
je 0x45885d
cmp byte [esi + 0x17], 0
mov ebx, dword [esp + 0x18]
jne 0x458811
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x45882a
and cl, 0x3d
mov byte [esi + 0x15], cl
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [esi + 0x15]
lea eax, [ebx + 1]
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x45884b
mov ecx, esi
call fcn.00401330
and byte [esi + 0x15], 0x8f
jmp 0x45886c
cmp dword [0x4dc430], 0
je 0x45886c
mov ecx, esi
call fcn.00401330
jmp 0x45886c
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0047faa0
test edi, edi
je 0x4588d5
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp byte [edi + 0x17], 0
mov esi, dword [esp + 0x30]
jne 0x45888c
mov edi, dword [edi + 0xc]
mov cl, byte [edi + 0x15]
test cl, 2
je 0x4588a5
and cl, 0x3d
mov byte [edi + 0x15], cl
mov ecx, dword [edi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [edi + 0x15]
mov eax, esi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [edi], eax
mov dword [edi + 4], edx
mov byte [edi + 0x15], cl
jge 0x4588c5
mov ecx, edi
call fcn.00401330
and byte [edi + 0x15], 0x8f
jmp 0x4588d5
cmp dword [0x4dc430], 0
je 0x4588d5
mov ecx, edi
call fcn.00401330
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
call fcn.0047faa0
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 0x458658
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x34]
push 0x4b70dc
push 0
push 0x4ca34c
call fcn.0042fd40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4