Function at 0x10036350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0578
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], 0
call fcn.10036270
push 0x100d1d18
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10016a85
push str.beacon_sdk.dll
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10016a85
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x10036414
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x7fffffff
jbe 0x100363d3
call fcn.100906d1
add eax, eax
cmp eax, 0x1000
jb 0x1003640b
test byte [ebp - 0x44], 0x1f
je 0x100363e7
call fcn.100906d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100363f3
call fcn.100906d1
sub ecx, eax
cmp ecx, 4
jae 0x100363ff
call fcn.100906d1
cmp ecx, 0x23
jbe 0x10036409
call fcn.100906d1
mov ecx, eax
push ecx
call fcn.1008a772
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x10036485
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x7fffffff
jbe 0x10036444
call fcn.100906d1
add eax, eax
cmp eax, 0x1000
jb 0x1003647c
test byte [ebp - 0x5c], 0x1f
je 0x10036458
call fcn.100906d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10036464
call fcn.100906d1
sub ecx, eax
cmp ecx, 4
jae 0x10036470
call fcn.100906d1
cmp ecx, 0x23
jbe 0x1003647a
call fcn.100906d1
mov ecx, eax
push ecx
call fcn.1008a772
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
cmp dword [ebp - 0x18], 8
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
je 0x10036500
xor eax, eax
mov word [esi], ax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jae 0x100364f0
mov eax, dword [ebp - 0x1c]
add eax, 1
je 0x100364f5
add eax, eax
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.1008c960
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x1003656a
mov ecx, dword [ebp - 0x2c]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x1003656a
xor eax, eax
mov ecx, esi
push eax
push 0x100d0a54
mov word [esi], ax
call fcn.10001ddf
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x1003656a
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x7fffffff
jbe 0x1003652a
call fcn.100906d1
add eax, eax
cmp eax, 0x1000
jb 0x10036561
test cl, 0x1f
je 0x1003653d
call fcn.100906d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10036549
call fcn.100906d1
sub ecx, eax
cmp ecx, 4
jae 0x10036555
call fcn.100906d1
cmp ecx, 0x23
jbe 0x1003655f
call fcn.100906d1
mov ecx, eax
push ecx
call fcn.1008a772
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4