Function at 0x452230
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 [0x4d3d9c]
cmp cl, al
mov cl, 3
mov dword [esp + 0x18], edx
sbb edi, edi
and edi, dword [0x4d3da0]
cmp cl, al
mov dword [esp + 0x2c], edi
sbb ecx, ecx
and ecx, dword [0x4d3da4]
mov dword [esp + 0x1c], ecx
mov cl, 4
cmp cl, al
sbb ecx, ecx
and ecx, dword [0x4d3da8]
mov dword [esp + 0x20], ecx
mov cl, 5
cmp cl, al
mov cl, 6
sbb ebx, ebx
and ebx, dword [0x4d3dac]
cmp cl, al
mov cl, 7
sbb esi, esi
and esi, dword [0x4d3db0]
cmp cl, al
sbb eax, eax
and eax, dword [0x4d3db4]
mov dword [esp + 0x24], eax
test edx, edx
je 0x4522c3
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edx
call fcn.00475930
test edi, edi
je 0x4522d6
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00475930
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4522ed
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.00475930
mov eax, dword [esp + 0x20]
test eax, eax
je 0x452304
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.00475930
test ebx, ebx
je 0x452317
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00475930
test esi, esi
je 0x45232a
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00475930
mov eax, dword [esp + 0x24]
test eax, eax
je 0x452341
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.00475930
mov edi, dword [ebp + 8]
push 0x2a
push edi
mov byte [esp + 0x1b], 0
call fcn.0048c759
add esp, 8
test eax, eax
jne 0x4523a4
push 0x3f
push edi
call fcn.0048c759
add esp, 8
test eax, eax
jne 0x4523a4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4523bf
mov eax, dword [0x4ce8c8]
cmp byte [eax + 0x108], 0
jne 0x4525ac
mov ecx, dword [0x4d166c]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf994
call fcn.00475930
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 0x452373
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 0x4a67a0
push 1
push 0
push 0x4a67b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x45258d
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push 0x4a67c0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x452583
mov eax, dword [esp + 0x28]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x452579
mov edi, dword [esp + 0x18]
test edi, edi
je 0x45244a
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.00475930
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x452478
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.00475930
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4524a6
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.00475930
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4524d4
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.00475930
test ebx, ebx
jne 0x4524dc
test esi, esi
je 0x452537
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 0x45250b
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
call fcn.00475930
test esi, esi
je 0x452537
cmp word [esp + 0x38], 0
mov ecx, esi
je 0x45252a
mov eax, dword [esp + 0x18]
inc eax
push 0x18
cdq
push edx
push eax
call fcn.00401ac0
jmp 0x452537
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.00475930
mov esi, dword [esp + 0x24]
test esi, esi
je 0x45255e
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.00401ac0
mov ecx, dword [0x4d166c]
push 1
push 0
push 0xffffffffffffffff
push 0x4ac300
call fcn.00475930
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 0x452373
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x34]
push 0x4ac22c
push 0
push 0x4bf994
call fcn.0042cf00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4