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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532b88
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x304], edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.00429790
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
call fcn.00429790
add esp, 0x10
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 4
test ecx, ecx
jne 0x42a343
movups xmm0, xmmword [ebp - 0x58]
movq xmm1, qword [ebp - 0x48]
movups xmmword [ebp - 0x80], xmm0
movq qword [ebp - 0x2fc], xmm1
jmp 0x42a401
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x58]
cmp edx, 8
cmovae eax, dword [ebp - 0x58]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x42a3ec
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x42a9ed
push 1
push 0x53dd54
cmp edx, 8
lea eax, [ebp - 0x58]
push ecx
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x88]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x2f8]
call fcn.00428500
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x42a3d2
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a3c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9f2
push edx
push ecx
call fcn.00460404
add esp, 8
movups xmm0, xmmword [ebp - 0x88]
movq xmm1, qword [ebp - 0x78]
movq qword [ebp - 0x2fc], xmm1
movups xmmword [ebp - 0x80], xmm0
jmp 0x42a405
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x2fc], xmm0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42a43f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a435
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9f2
push edx
push ecx
call fcn.00460404
add esp, 8
movups xmm0, xmmword [ebp - 0x80]
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 2
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x2fc]
movq qword [ebp - 0x30], xmm0
cmp edx, 8
jb 0x42a498
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a48e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9f2
push edx
push ecx
call fcn.00460404
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a904
test al, 0x10
je 0x42a904
cmp byte [ebp + 0x10], 0
je 0x42a4df
mov eax, dword [edi + 4]
push esi
cmp eax, dword [edi + 8]
je 0x42a4d7
mov ecx, eax
call fcn.004198f0
add dword [edi + 4], 0x18
jmp 0x42a4df
push eax
mov ecx, edi
call fcn.004195c0
mov ecx, dword [ebp - 0x30]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 3
jb 0x42a9ed
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 3
cmovae eax, dword [ebp - 0x40]
push 0x53f0f0
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x2f8]
lea ecx, [ebp - 0x58]
call fcn.00428500
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x42a552
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a548
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9f7
push edx
push ecx
call fcn.00460404
add esp, 8
movups xmm0, xmmword [ebp - 0x58]
xor eax, eax
lea ecx, [ebp - 0x58]
mov word [ebp - 0x58], ax
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
call fcn.00419a40
push 0x250
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.004ecad0
add esp, 0xc
lea ecx, [ebp - 0x2f0]
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x30c], edi
cmp edi, 0xffffffff
je 0x42a904
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x308], eax
nop word [eax + eax]
lea esi, [ebp - 0x2c4]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42a5f0
sub esi, ecx
mov ecx, dword [ebp - 0x14]
sar esi, 1
mov dword [ebp - 0x300], ecx
cmp esi, ecx
ja 0x42a63a
cmp ecx, 8
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea eax, [ebp - 0x2c4]
add esi, esi
push esi
push eax
push edi
call fcn.004ec550
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x28]
jmp 0x42a6ef
cmp esi, 0x7ffffffe
ja 0x42a9ed
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x42a65a
mov edi, SysReAllocString
jmp 0x42a678
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x42a670
mov edi, SysReAllocString
jmp 0x42a678
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00416d10
mov dword [ebp - 0x18], esi
add esi, esi
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2c4]
push esi
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x2f4]
push eax
push edi
call fcn.004ebfd0
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
mov eax, dword [ebp - 0x300]
cmp eax, 8
jb 0x42a6ec
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a6e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9f7
push edx
push ecx
call fcn.00460404
add esp, 8
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae esi, edi
cmp eax, 1
jne 0x42a729
mov ecx, 0x53ea58
mov edx, eax
sub esi, ecx
nop word [eax + eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x42a726
add ecx, 2
sub edx, 1
jne 0x42a710
jmp 0x42a8cb
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, edi
cmp eax, 2
jne 0x42a756
mov ecx, 0x53ea5c
mov edx, eax
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x42a756
add ecx, 2
sub edx, 1
jne 0x42a741
mov al, 1
jmp 0x42a758
xor al, al
test al, al
jne 0x42a8cb
mov edx, dword [ebp - 0x30]
mov eax, SysReAllocString
mov esi, dword [ebp - 0x18]
sub eax, edx
cmp eax, esi
jb 0x42a9ed
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push esi
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, edi
push eax
push edx
push ecx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x308]
lea ecx, [ebp - 0xa0]
call fcn.00428500
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42a7dd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a7d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9f7
push edx
push ecx
call fcn.00460404
add esp, 8
test byte [ebp - 0x2f0], 0x10
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x90]
movq qword [ebp - 0x18], xmm0
je 0x42a8cb
mov edi, dword [ebp - 0x304]
lea eax, [ebp - 0x28]
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x42a8b3
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x2f4], ecx
mov dword [ebp - 0x300], eax
cmp ecx, 8
jae 0x42a85e
movups xmm0, xmmword [eax]
mov edi, 7
movups xmmword [esi], xmm0
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
mov edi, dword [ebp - 0x304]
add dword [edi + 4], 0x18
jmp 0x42a8bc
mov edi, ecx
mov eax, SysReAllocString
or edi, 7
mov ecx, esi
cmp edi, 0x7ffffffe
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.00416d10
mov ecx, dword [ebp - 0x2f4]
mov dword [esi], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x300]
push eax
call fcn.004ebfd0
mov ecx, dword [ebp - 0x2f4]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
mov edi, dword [ebp - 0x304]
add dword [edi + 4], 0x18
jmp 0x42a8bc
push eax
push esi
mov ecx, edi
call fcn.004195c0
push 0
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0042a290
add esp, 0xc
push pe_nt_image_headers32
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.004ecad0
mov edi, dword [ebp - 0x30c]
lea eax, [ebp - 0x2f0]
add esp, 0xc
push eax
push edi
call dword [ebp - 0x2f8]
test eax, eax
jne 0x42a5e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42a93e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a934
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9f7
push edx
push ecx
call fcn.00460404
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x42a988
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a97e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9f7
push edx
push ecx
call fcn.00460404
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x42a9d2
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a9c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a9f7
push edx
push ecx
call fcn.00460404
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret
call fcn.00404fc0
call fcn.004f5b2a
call fcn.004f5b2a
int3