Function at 0x10037730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1c78
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1010e070]
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.10037650
push 0x100d3d18
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 0x100377f4
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x7fffffff
jbe 0x100377b3
call fcn.10091aa1
add eax, eax
cmp eax, 0x1000
jb 0x100377eb
test byte [ebp - 0x44], 0x1f
je 0x100377c7
call fcn.10091aa1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100377d3
call fcn.10091aa1
sub ecx, eax
cmp ecx, 4
jae 0x100377df
call fcn.10091aa1
cmp ecx, 0x23
jbe 0x100377e9
call fcn.10091aa1
mov ecx, eax
push ecx
call fcn.1008bb42
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 0x10037865
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x7fffffff
jbe 0x10037824
call fcn.10091aa1
add eax, eax
cmp eax, 0x1000
jb 0x1003785c
test byte [ebp - 0x5c], 0x1f
je 0x10037838
call fcn.10091aa1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10037844
call fcn.10091aa1
sub ecx, eax
cmp ecx, 4
jae 0x10037850
call fcn.10091aa1
cmp ecx, 0x23
jbe 0x1003785a
call fcn.10091aa1
mov ecx, eax
push ecx
call fcn.1008bb42
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 0x100378e0
xor eax, eax
mov word [esi], ax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jae 0x100378d0
mov eax, dword [ebp - 0x1c]
add eax, 1
je 0x100378d5
add eax, eax
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.1008dd30
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x1003794a
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 0x1003794a
xor eax, eax
mov ecx, esi
push eax
push 0x100d2a54
mov word [esi], ax
call fcn.10001ddf
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x1003794a
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x7fffffff
jbe 0x1003790a
call fcn.10091aa1
add eax, eax
cmp eax, 0x1000
jb 0x10037941
test cl, 0x1f
je 0x1003791d
call fcn.10091aa1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10037929
call fcn.10091aa1
sub ecx, eax
cmp ecx, 4
jae 0x10037935
call fcn.10091aa1
cmp ecx, 0x23
jbe 0x1003793f
call fcn.10091aa1
mov ecx, eax
push ecx
call fcn.1008bb42
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.1008bb47
mov esp, ebp
pop ebp
ret 4