Function at 0x1000ec50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b1ed
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x100b3400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x100b7400]
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x1000ecf6
push 0x100b3004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100b7400], 0
jne 0x1000ece5
push 4
call fcn.1003b724
mov esi, eax
add esp, 4
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1000eccb
mov ecx, esi
mov dword [esi], 0
call fcn.10023900
jmp 0x1000eccd
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x814]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x100b7400], esi
push 0x100b3004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100b7400]
push 1
call fcn.10028170
test al, al
je 0x1000eea2
call fcn.1002f850
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000eea2
call fcn.100100f0
push 0x400
lea eax, [ebp - 0x810]
push eax
push dword [0x100b73d0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.game_loader.tpi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000edac
lea eax, [ebp - 0x810]
push eax
call fcn.100385a0
add esp, 4
test eax, eax
je 0x1000edac
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000edac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsAvoidCondition
push ebx
call esi
push str.CreateUrlIcon
push ebx
mov dword [edi + 0x44], eax
call esi
mov dword [edi + 0x48], eax
lea esi, [edi - 0x84]
mov ecx, esi
call fcn.100052b0
push 7
push str.0.0.0.0
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0xf
mov byte [ebp - 0x82c], 0
call fcn.100072d0
push 7
push str.0.0.0.0
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], 1
call fcn.100072d0
push dword [esi + 0x8c]
lea eax, [ebp - 0x82c]
mov ecx, esi
push eax
call fcn.100052c0
mov ecx, esi
test al, al
jne 0x1000ee5a
call fcn.10005960
mov edx, dword [ebp - 0x818]
cmp edx, 0x10
jb 0x1000eea2
mov ecx, dword [ebp - 0x82c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ee4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000eeda
push edx
push ecx
call fcn.1003b754
add esp, 8
jmp 0x1000eea2
call fcn.10005270
mov edx, dword [ebp - 0x818]
mov ebx, eax
mov dword [esi + 0x8c], ebx
cmp edx, 0x10
jb 0x1000ee9d
mov ecx, dword [ebp - 0x82c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ee93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000eedf
push edx
push ecx
call fcn.1003b754
add esp, 8
cmp ebx, 0xffffffff
jne 0x1000eeb7
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1000eeb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret 4
call fcn.1004d159
call fcn.1004d159
int3