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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
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 [0x4b0844]
cmp cl, al
mov cl, 3
mov dword [esp + 0x18], edx
sbb edi, edi
and edi, dword [0x4b0848]
cmp cl, al
mov dword [esp + 0x2c], edi
sbb ecx, ecx
and ecx, dword [0x4b084c]
mov dword [esp + 0x28], ecx
mov cl, 4
cmp cl, al
sbb ecx, ecx
and ecx, dword [0x4b0850]
mov dword [esp + 0x24], ecx
mov cl, 5
cmp cl, al
mov cl, 6
sbb ebx, ebx
and ebx, dword [0x4b0854]
cmp cl, al
mov cl, 7
sbb esi, esi
and esi, dword [0x4b0858]
cmp cl, al
sbb eax, eax
and eax, dword [0x4b085c]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x450c03
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edx
call fcn.004759c0
test edi, edi
je 0x450c16
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004759c0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x450c2d
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.004759c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x450c44
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.004759c0
test ebx, ebx
je 0x450c57
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004759c0
test esi, esi
je 0x450c6a
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004759c0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x450c81
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.004759c0
mov edi, dword [ebp + 8]
push 0x2a
push edi
mov byte [esp + 0x1b], 0
call fcn.00486ac4
add esp, 8
test eax, eax
jne 0x450ce4
push 0x3f
push edi
call fcn.00486ac4
add esp, 8
test eax, eax
jne 0x450ce4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x450cff
mov eax, dword [0x4ac1d8]
test byte [eax + 0xe0], 1
jne 0x450f0c
mov ecx, dword [0x4af094]
push 1
push 0
push 0xffffffffffffffff
push 0x4a09f8
call fcn.004759c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x450cb3
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 0x499800
push 1
push 0
push 0x499810
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x450eed
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x499820
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x450ee3
push 0x105
lea eax, [esp + 0x284]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x280]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x450ed9
mov edi, dword [esp + 0x18]
test edi, edi
je 0x450dab
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.004759c0
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x450dd9
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.004759c0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x450e07
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.004759c0
mov edi, dword [esp + 0x24]
test edi, edi
je 0x450e35
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.004759c0
test ebx, ebx
jne 0x450e3d
test esi, esi
je 0x450e97
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 0x450e6c
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
call fcn.004759c0
test esi, esi
je 0x450e97
cmp byte [esp + 0x38], 0
mov ecx, esi
je 0x450e8a
mov eax, dword [esp + 0x18]
inc eax
push 0x18
cdq
push edx
push eax
call fcn.00402370
jmp 0x450e97
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004759c0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x450ebe
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.00402370
mov ecx, dword [0x4af094]
push 1
push 0
push 0xffffffffffffffff
push 0x49e080
call fcn.004759c0
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x20]
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 0x450cb3
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x34]
push 0x49e065
push 0
push 0x4a09f8
call fcn.0042ddd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4