Function at 0x10001720
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001275c
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x1001a008]
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
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.10004ef0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.sm_5star_black_
lea eax, [ebp - 0x110]
push str._s__u
push eax
call fcn.10001690
add esp, 0x10
lea ecx, [ebp - 0x130]
call fcn.10001e50
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov esi, dword [0x1001b2b4]
mov dword [0x1001b2b4], ecx
mov dword [0x1001b2b0], edx
or edi, 0xffffffff
mov dword [ebp - 4], 0
test esi, esi
je 0x100017e0
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100017e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100017e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x12c]
test esi, esi
je 0x1000180f
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1000180f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1000180f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x110], 0
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
jne 0x1000183e
xor ecx, ecx
jmp 0x10001850
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001847
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.100011a0
cmp dword [ebp - 0x118], 0
mov esi, dword [0x1001b2b0]
jne 0x10001876
xor eax, eax
jmp 0x1000188a
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
cmovae eax, dword [ebp - 0x128]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
test eax, eax
jne 0x100018a3
mov bl, 1
jmp 0x100018ac
mov dword [esi + 0x24], 0
xor bl, bl
mov eax, dword [ebp - 0x114]
cmp eax, 0x10
jb 0x100018fc
mov ecx, dword [ebp - 0x128]
inc eax
cmp eax, 0x1000
jb 0x100018f3
test cl, 0x1f
je 0x100018cf
call fcn.10005e42
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100018db
call fcn.10005e42
sub ecx, eax
cmp ecx, 4
jae 0x100018e7
call fcn.10005e42
cmp ecx, 0x23
jbe 0x100018f1
call fcn.10005e42
mov ecx, eax
push ecx
call fcn.10002c69
add esp, 4
test bl, bl
je 0x100019d8
cmp byte [ebp - 0x110], 0
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
jne 0x1000192c
xor ecx, ecx
jmp 0x1000193e
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001935
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x148]
call fcn.100011a0
push ecx
mov ecx, dword [0x1001b2b0]
lea eax, [ebp - 0x148]
push eax
call fcn.10001010
test eax, eax
lea ecx, [ebp - 0x148]
sete bl
call fcn.100010a0
test bl, bl
jne 0x10001a19
mov esi, dword [0x1001b2b0]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10001a19
cmp dword [esi + 0x24], 0
mov edx, 4
push 0xa00000
push 0
push 0
mov eax, 0xf001f
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov dword [esi + 8], eax
test eax, eax
setne cl
test ecx, ecx
je 0x10001a19
mov eax, dword [0x1001b2b0]
push 0xa00000
push 0
push dword [eax + 8]
call fcn.10004ef0
add esp, 0xc
mov al, 1
jmp 0x10001a1b
mov esi, dword [0x1001b2b0]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10001a19
cmp dword [esi + 0x24], 0
mov edx, 4
push 0xa00000
push 0
push 0
mov eax, 0xf001f
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov dword [esi + 8], eax
test eax, eax
setne cl
test ecx, ecx
je 0x10001a19
mov al, 1
jmp 0x10001a1b
xor al, al
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.10002c25
mov esp, ebp
pop ebp
ret