Function at 0x10036bd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0f28
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1010c070]
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.10036af0
push 0x100d2cf8
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10016a25
push str.beacon_sdk.dll
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10016a25
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x10036c94
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x7fffffff
jbe 0x10036c53
call fcn.10090e61
add eax, eax
cmp eax, 0x1000
jb 0x10036c8b
test byte [ebp - 0x44], 0x1f
je 0x10036c67
call fcn.10090e61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10036c73
call fcn.10090e61
sub ecx, eax
cmp ecx, 4
jae 0x10036c7f
call fcn.10090e61
cmp ecx, 0x23
jbe 0x10036c89
call fcn.10090e61
mov ecx, eax
push ecx
call fcn.1008aee5
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 0x10036d05
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x7fffffff
jbe 0x10036cc4
call fcn.10090e61
add eax, eax
cmp eax, 0x1000
jb 0x10036cfc
test byte [ebp - 0x5c], 0x1f
je 0x10036cd8
call fcn.10090e61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10036ce4
call fcn.10090e61
sub ecx, eax
cmp ecx, 4
jae 0x10036cf0
call fcn.10090e61
cmp ecx, 0x23
jbe 0x10036cfa
call fcn.10090e61
mov ecx, eax
push ecx
call fcn.1008aee5
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 0x10036d80
xor eax, eax
mov word [esi], ax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jae 0x10036d70
mov eax, dword [ebp - 0x1c]
add eax, 1
je 0x10036d75
add eax, eax
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.1008d0f0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x10036dea
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 0x10036dea
xor eax, eax
mov ecx, esi
push eax
push 0x100d1a34
mov word [esi], ax
call fcn.10001dcf
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x10036dea
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x7fffffff
jbe 0x10036daa
call fcn.10090e61
add eax, eax
cmp eax, 0x1000
jb 0x10036de1
test cl, 0x1f
je 0x10036dbd
call fcn.10090e61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10036dc9
call fcn.10090e61
sub ecx, eax
cmp ecx, 4
jae 0x10036dd5
call fcn.10090e61
cmp ecx, 0x23
jbe 0x10036ddf
call fcn.10090e61
mov ecx, eax
push ecx
call fcn.1008aee5
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.1008aeea
mov esp, ebp
pop ebp
ret 4