Function at 0x100366b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0918
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.100365d0
push 0x100d1cf8
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.100169d8
push str.beacon_sdk.dll
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.100169d8
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x10036774
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x7fffffff
jbe 0x10036733
call fcn.10090951
add eax, eax
cmp eax, 0x1000
jb 0x1003676b
test byte [ebp - 0x44], 0x1f
je 0x10036747
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10036753
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x1003675f
call fcn.10090951
cmp ecx, 0x23
jbe 0x10036769
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
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 0x100367e5
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x7fffffff
jbe 0x100367a4
call fcn.10090951
add eax, eax
cmp eax, 0x1000
jb 0x100367dc
test byte [ebp - 0x5c], 0x1f
je 0x100367b8
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100367c4
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x100367d0
call fcn.10090951
cmp ecx, 0x23
jbe 0x100367da
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
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 0x10036860
xor eax, eax
mov word [esi], ax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jae 0x10036850
mov eax, dword [ebp - 0x1c]
add eax, 1
je 0x10036855
add eax, eax
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.1008cbe0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x100368ca
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 0x100368ca
xor eax, eax
mov ecx, esi
push eax
push 0x100d0a34
mov word [esi], ax
call fcn.10001dcf
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x100368ca
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x7fffffff
jbe 0x1003688a
call fcn.10090951
add eax, eax
cmp eax, 0x1000
jb 0x100368c1
test cl, 0x1f
je 0x1003689d
call fcn.10090951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100368a9
call fcn.10090951
sub ecx, eax
cmp ecx, 4
jae 0x100368b5
call fcn.10090951
cmp ecx, 0x23
jbe 0x100368bf
call fcn.10090951
mov ecx, eax
push ecx
call fcn.1008a9f2
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.1008a9f7
mov esp, ebp
pop ebp
ret 4