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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov ebx, dword [ebp + 8]
mov eax, dword [0x5ef0d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x1126
push ebx
call fcn.0042b460
add esp, 4
test al, al
jne 0x42bc81
movaps xmm0, xmmword [0x5b5e40]
lea edi, [ebp - 0x28]
movups xmmword [edi], xmm0
movsd xmm0, qword [0x5b5e50]
movsd qword [edi + 0x10], xmm0
mov word [edi], 0
mov ecx, ebx
mov edx, edi
call fcn.0042bc9f
mov bh, al
mov ecx, edi
call fcn.0042be6d
mov byte [ebp - 0x4d], al
mov ecx, edi
mov edx, edi
call fcn.0042beb4
test bh, bh
jne 0x42b8cd
cmp byte [ebp - 0x4d], 0
jne 0x42b8cd
mov dword [ebp - 0x58], 0x7b
test al, al
je 0x42bc45
cmp byte [ebp - 0x4d], 0
jne 0x42ba0f
movsd xmm0, qword [0x5b7d90]
movsd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x48], 0x5c002e
mov dword [ebp - 0x4c], 0x5c005c
mov word [ebp - 0x44], 0
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
jb 0x42b904
mov edi, dword [ebp - 0x28]
cmp ebx, 3
jbe 0x42b92a
sub esp, 0x10
mov al, byte [ebp - 0x34]
mov byte [esp + 4], al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp], ebx
lea ecx, [ebp - 0x4c]
call fcn.00408900
mov esi, eax
jmp 0x42b94b
lea esi, [ebp - 0x4c]
lea eax, [ebx + 4]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x44]
lea ecx, [ebx + ebx]
push ecx
push edi
push eax
call fcn.00568520
add esp, 0xc
mov word [ebp + ebx*2 - 0x44], 0
mov edi, dword [esi]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
movsd xmm0, qword [esi + 4]
movsd qword [ebp - 0x34], xmm0
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42b9b7
mov esi, edx
mov eax, dword [ebp - 0x28]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x42b9ab
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42bc9a
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005660aa
add esp, 8
mov edx, esi
lea eax, [ebp - 0x24]
mov dword [eax - 4], edi
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x34]
movsd qword [eax], xmm0
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jb 0x42ba0f
mov eax, dword [ebp - 0x4c]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x42ba05
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42bc9a
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005660aa
add esp, 8
xor esi, esi
dec esi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], 0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp ebx, esi
cmovae ebx, esi
lea ecx, [ebp - 0x28]
cmp edi, 8
jb 0x42ba43
mov ecx, dword [ebp - 0x28]
cmp ebx, 7
jbe 0x42ba70
cmp ebx, 0x7fffffff
jae 0x42bc95
mov edi, ebx
or edi, 7
cmp edi, 0x7ffffffe
mov dword [ebp - 0x54], ecx
jbe 0x42ba8d
mov edi, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x42baa6
mov dword [ebp - 0x3c], ebx
lea eax, [ebx + ebx]
push eax
push ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.00568520
add esp, 0xc
mov word [ebp + ebx*2 - 0x4c], 0
jmp 0x42badb
cmp edi, 0xb
mov eax, 0xa
cmovb edi, eax
lea eax, [edi + edi]
add eax, 2
cmp edi, 0x7ff
jb 0x42baae
push eax
call fcn.0044d3f7
jmp 0x42bab4
push eax
call fcn.0056607a
add esp, 4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
lea ecx, [ebx + ebx]
push ecx
push dword [ebp - 0x54]
push eax
mov edi, eax
call fcn.00568520
add esp, 0xc
mov word [edi + ebx*2], 0
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x14]
cmp edi, 8
jb 0x42bb15
mov eax, dword [ebp - 0x28]
lea ecx, [edi + edi]
add ecx, 2
cmp ecx, 0x1000
jb 0x42bb0b
mov ecx, eax
add ecx, 0xfffffffc
mov eax, dword [eax - 4]
sub ecx, eax
cmp ecx, 0x20
jae 0x42bc9a
add edi, edi
add edi, 0x25
mov ecx, edi
push ecx
push eax
call fcn.005660aa
add esp, 8
movsd xmm0, qword [ebp - 0x3c]
movsd qword [ebp - 0x18], xmm0
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [ebp - 0x28], xmm0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x42bb33
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bb4e
bt eax, 0xa
jae 0x42bbd4
jmp 0x42bc3e
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
cmp ecx, 2
jb 0x42bbca
cmp eax, 0x7b
je 0x42bbca
test byte [ebp - 0x5c], 1
sete dl
or dl, byte [ebp - 0x4d]
jne 0x42bbc4
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x54], edx
jb 0x42bb81
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x54], edx
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x42bbc4
mov edx, dword [ebp - 0x54]
lea edx, [edx + edi*2]
add edx, 0xfffffffe
cmp word [edx], 0x5c
jne 0x42bb9b
mov edi, edx
jmp 0x42bbb7
add edi, edi
mov ebx, 2
sub ebx, edi
test ebx, ebx
je 0x42bbc4
lea edi, [edx - 2]
add ebx, 2
cmp word [edx - 2], 0x5c
mov edx, edi
jne 0x42bba4
sub edi, dword [ebp - 0x54]
mov ebx, 2
cmp edi, 6
je 0x42bbca
mov dword [ebp - 0x58], eax
xor ebx, ebx
inc ebx
cmp ecx, 2
jb 0x42bbd4
cmp eax, 0x7b
jne 0x42bc2c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x42bbe0
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
mov cl, 1
mov dword [ebp - 0x5c], ecx
test esi, esi
je 0x42bc1e
lea ecx, [eax + esi*2]
add ecx, 0xfffffffe
cmp word [ecx], 0x5c
jne 0x42bbfc
mov esi, ecx
jmp 0x42bc18
add esi, esi
mov edx, 2
sub edx, esi
test edx, edx
je 0x42bc1e
lea esi, [ecx - 2]
add edx, 2
cmp word [ecx - 2], 0x5c
mov ecx, esi
jne 0x42bc05
sub esi, eax
sar esi, 1
jmp 0x42bc21
xor esi, esi
dec esi
cmp esi, 2
ja 0x42ba19
jmp 0x42bc35
test ebx, ebx
je 0x42bc21
cmp ebx, 2
jne 0x42bc45
mov dword [ebp - 0x58], 0x1126
jmp 0x42bc45
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
mov esi, dword [ebp - 0x58]
jb 0x42bc81
mov eax, dword [ebp - 0x28]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x42bc77
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42bc9a
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005660aa
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565e42
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0044d886
call fcn.0056cec6