Function at 0x10017850
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025bc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1274
call fcn.1001afc0
push ebx
push esi
mov ebx, dword [ebp + 0xc]
push edi
mov ecx, 0x7d
xor eax, eax
lea edi, [ebp - 0x228]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
xor edi, edi
push eax
push edi
push 0x1003a4e0
push ebx
call fcn.10012050
cmp eax, edi
jne 0x100178ab
push edi
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [0x10039080]
lea edx, [ebp - 0x228]
test edx, edx
mov dword [ebp + 0xc], ecx
je 0x1001791a
lea eax, [ebp - 0x228]
shr eax, 0x10
jne 0x100178df
xor eax, eax
lea ecx, [ebp - 0x228]
mov ax, cx
lea ecx, [ebp + 0xc]
push eax
call fcn.100038f0
jmp 0x1001791a
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.kernel32.dll_lstrlen]
mov esi, eax
cmp esi, edi
je 0x1001791a
push esi
lea ecx, [ebp + 0xc]
call fcn.100018a0
test eax, eax
je 0x1001791a
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov eax, ecx
lea esi, [ebp - 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov eax, dword [0x10039080]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp esi, edi
jne 0x10017937
xor eax, eax
jmp 0x1001793e
push esi
call dword [sym.imp.kernel32.dll_lstrlen]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.10001a10
cmp ebx, edi
jne 0x10017950
xor eax, eax
jmp 0x10017957
push ebx
call dword [sym.imp.kernel32.dll_lstrlen]
push ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.10001a10
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 8]
cmp eax, edi
mov eax, dword [ebp - 0x18]
jne 0x10017a05
mov ecx, dword [0x10039084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x100179a0
mov esi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x100179a6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
call fcn.1001a644
add esp, 4
jmp 0x100179a6
mov esi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x14]
mov edx, dword [0x10039084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x100179cf
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x100179cf
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff4
push edx
call fcn.1001a644
add esp, 4
mov eax, dword [ebp + 0xc]
mov edx, dword [0x10039084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10017c5d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10017c5d
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.1001a644
add esp, 4
jmp 0x10017c5d
cmp dword [eax - 8], edi
jne 0x10017a61
mov edx, dword [0x10039084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10017a38
mov esi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10017a3e
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff4
push edx
call fcn.1001a644
add esp, 4
jmp 0x10017a3e
mov esi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x14]
mov edx, dword [0x10039084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x100179cf
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x100179cf
jmp 0x100179c0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x28]
mov eax, dword [eax - 8]
push ecx
lea edx, [ebp - 0x228]
push eax
push edx
lea ecx, [ebp - 0x1284]
call fcn.10003af0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
mov esi, dword [eax - 8]
mov ecx, esi
mov dword [ebp - 0x20], esi
and ecx, 0x80000007
jns 0x10017aa0
dec ecx
or ecx, 0xfffffff8
inc ecx
sub esi, ecx
add esi, 8
push esi
call fcn.1001a636
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push esi
call fcn.1001a636
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x20]
cdq
and ecx, 3
sub eax, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
sar esi, 1
push esi
push ebx
push ecx
call fcn.1000e600
add esp, 0xc
lea ecx, [ebp - 0x1284]
push 0
push esi
push ebx
push ebx
call fcn.100046c0
push 0xc8
call fcn.1001a636
mov edx, eax
mov ecx, 0x32
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
add esp, 4
mov dword [ebp + 8], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x10040530]
push ecx
push eax
push edx
call fcn.100175b0
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001a644
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1001a644
push ebx
call fcn.1001a644
add esp, 0xc
lea ecx, [ebp - 0x1284]
mov byte [ebp - 4], 3
call fcn.10004960
mov eax, dword [ebp - 0x18]
mov edx, dword [0x10039084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10017bd0
mov esi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10017bd6
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff4
push edx
call fcn.1001a644
add esp, 4
jmp 0x10017bd6
mov esi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x14]
mov edx, dword [0x10039084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10017bff
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10017bff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff4
push edx
call fcn.1001a644
add esp, 4
mov eax, dword [ebp + 0xc]
mov edx, dword [0x10039084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10017c28
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10017c28
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.1001a644
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc