Function at 0x47cbc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b7f1
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
cmp dword [ecx + 0x24], eax
je 0x47cd80
cmp dword [ecx + 0x98], eax
jbe 0x47cfd5
lea eax, [ecx + 0x88]
push 0x5329c0
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0047d190
add esp, 0xc
push 0xe
push str.beacon_sdk.dll
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0044ae60
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x220]
movq qword [ebp - 0x26c], xmm1
movups xmmword [ebp - 0x27c], xmm0
cmp edx, 8
jb 0x47ccda
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ccc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d055
push edx
push ecx
call fcn.004dafca
movups xmm0, xmmword [ebp - 0x27c]
add esp, 8
movq xmm1, qword [ebp - 0x26c]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x238]
movq qword [ebp - 0x224], xmm1
movups xmmword [ebp - 0x234], xmm0
cmp edx, 8
jb 0x47cd2d
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47cd23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d055
push edx
push ecx
call fcn.004dafca
add esp, 8
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47cfd5
movups xmm0, xmmword [ebp - 0x234]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x224]
movq qword [esi + 0x10], xmm0
jmp 0x47d037
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x47cdd3
push eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
push 0x5323dc
jmp 0x47ce27
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
lea edx, [ecx + 2]
mov word [ebp - 0x264], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ce10
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.0044a750
push 1
push 0x5329c0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.0044ae60
mov dword [ebp - 0x24c], 0
xor ecx, ecx
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x24c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x23c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0xe
push str.beacon_sdk.dll
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 3
call fcn.0044ae60
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x220]
movq qword [ebp - 0x26c], xmm1
movups xmmword [ebp - 0x27c], xmm0
cmp edx, 8
jb 0x47cf1f
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47cf06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d05a
push edx
push ecx
call fcn.004dafca
movups xmm0, xmmword [ebp - 0x27c]
add esp, 8
movq xmm1, qword [ebp - 0x26c]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x238]
movq qword [ebp - 0x224], xmm1
movups xmmword [ebp - 0x234], xmm0
cmp edx, 8
jb 0x47cf72
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47cf68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d05a
push edx
push ecx
call fcn.004dafca
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
cmp edx, 8
jb 0x47cd2d
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47cd23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d05a
jmp 0x47cd23
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
push 0x5323dc
mov word [esi], ax
call fcn.0044a750
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x47d037
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d02d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d05f
push edx
push ecx
call fcn.004dafca
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
call fcn.004e002c
call fcn.004e002c
call fcn.004e002c
int3