Function at 0x101b7140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x208
lea eax, [ebp - 0x414]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x440], ebx
call sub.msvcrt.dll_memset
push str.360ss2.dat
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [0x10257d10]
call fcn.100da6a0
lea edi, [ebx + 0x28]
add esp, 0x1c
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x448], edi
test edi, edi
je 0x101b71a5
push edi
call ebx
xor eax, eax
push esi
mov dword [ebp - 0x438], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101b71c0
push esi
call ebx
push 8
call fcn.10003680
add esp, 4
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
test eax, eax
je 0x101b71f0
lea ecx, [ebp - 0x414]
push ecx
call eax
mov ebx, eax
mov dword [ebp - 0x428], ebx
jmp 0x101b7205
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x428], eax
test esi, esi
je 0x101b7210
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x101b759d
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push str.360ss2map.ini
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x10257d10]
call fcn.100da6a0
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x101b759d
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.ss2ts
mov dword [ebp - 0x418], eax
call fcn.10023e80
test al, al
jne 0x101b729b
push 5
push str.ss2ts
lea ecx, [ebp - 0x418]
call fcn.10003740
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10023e80
test al, al
jne 0x101b72f2
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101b72d0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x41c]
call fcn.10003740
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x454]
call fcn.1014dce0
mov edx, dword [ebp - 0x41c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101b732b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x101b7346
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push ebx
call fcn.100f2f10
mov esi, eax
lea ecx, [esi + 1]
push ecx
call sub.msvcrt.dll_malloc
mov ebx, eax
add esp, 4
mov dword [ebp - 0x444], ebx
test ebx, ebx
je 0x101b756e
push 0
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
push eax
push esi
push ebx
push dword [ebp - 0x428]
call fcn.100f2f60
test eax, eax
je 0x101b7565
mov eax, dword [ebp - 0x42c]
cmp eax, 0x34
jbe 0x101b7565
cmp dword [ebx + 8], 2
jne 0x101b7565
add eax, 0xffffffcc
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], eax
lea esi, [ebx + 0x34]
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], esi
push eax
call fcn.101af920
mov eax, dword [ebp - 0x41c]
add esp, 4
test eax, eax
je 0x101b7565
mov ecx, dword [eax]
push 0
push 0
push 0
push 8
push 0x1021d850
push 0x100
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x418]
push edx
push esi
push dword [ebp - 0x418]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x41c]
lea ecx, [ebp - 0x430]
push ecx
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x430], 0
add ecx, esi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [ebp - 0x418]
add eax, dword [ebp - 0x430]
push eax
push esi
mov dword [ebp - 0x418], eax
call fcn.100574c0
add esp, 8
cmp eax, dword [ebx + 0x30]
jne 0x101b7555
cmp dword [ebx + 0x2c], 0
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x434], 0
jbe 0x101b7555
push 0xf1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [ebp - 0x43c], ebx
test ebx, ebx
je 0x101b7527
mov ecx, 0x3c7
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x10202940
lea ecx, [ebp - 0x420]
call fcn.10002490
push dword [ebx + 4]
lea eax, [ebp - 0x420]
push 0x10204700
push eax
call fcn.10002cb0
mov eax, dword [ebx + 4]
add esp, 0xc
test eax, eax
je 0x101b7504
cmp eax, 0x11170
jae 0x101b7504
push 0xffffffffffffffff
push dword [ebp - 0x420]
lea ecx, [ebp - 0x454]
call fcn.1014ddb0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x101b7516
lea eax, [ecx - 1]
cmp eax, 0x1116e
ja 0x101b7504
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x43c]
push eax
call fcn.10156de0
lea ecx, [ebp - 0x420]
call fcn.10007e10
mov esi, dword [ebp - 0x424]
mov eax, dword [ebp - 0x434]
add esi, 0xf1c
mov ebx, dword [ebp - 0x444]
inc eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x424], esi
cmp eax, dword [ebx + 0x2c]
jb 0x101b7482
mov edi, dword [ebp - 0x448]
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x101b7565
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call sub.msvcrt.dll_free
add esp, 4
push dword [ebp - 0x428]
call fcn.1006c110
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.100d9c10
add esp, 8
lea ecx, [ebp - 0x454]
call fcn.1014dd10
mov ebx, dword [ebp - 0x438]
jmp 0x101b759f
xor ebx, ebx
pop esi
test edi, edi
je 0x101b75ab
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret