Function at 0x10018130
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x10], ebp
je 0x10018147
mov dword [eax], ebp
mov ebx, dword [esp + 0x28]
cmp ebx, ebp
je 0x10018151
mov dword [ebx], ebp
mov edi, dword [esp + 0x2c]
cmp edi, ebp
je 0x1001815b
mov dword [edi], ebp
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x10018165
mov dword [eax], ebp
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x1001816f
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1003ef80], eax
je 0x1001818c
pop edi
pop esi
pop ebp
mov eax, 0x10dd
pop ebx
add esp, 8
ret 0x20
mov eax, dword [0x1003ef84]
cmp eax, ebp
jne 0x1001847c
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jne 0x100181b0
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret 0x20
mov eax, dword [ecx]
cmp eax, ebp
jne 0x100181d0
pop edi
mov eax, 6
pop esi
pop ebp
mov dword [0x1003ef84], eax
mov dword [0x1003ef88], ecx
pop ebx
add esp, 8
ret 0x20
push ebp
push eax
mov dword [esp + 0x34], ebp
call fcn.10017a30
mov esi, eax
push 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], esi
push eax
call fcn.10017a30
cmp eax, esi
mov dword [esp + 0x20], eax
jne 0x10018207
mov eax, dword [0x1003ef7c]
test eax, eax
jne 0x10018401
jmp 0x100183d9
test ebx, ebx
je 0x1001820d
mov dword [ebx], esi
test edi, edi
je 0x10018213
mov dword [edi], eax
push 0x18
call fcn.10019e52
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10018232
mov dword [esp + 0x10], 8
jmp 0x100183d9
push esi
call fcn.10018490
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1001824e
mov dword [esp + 0x10], 8
jmp 0x100183d9
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10018258
mov dword [eax], ebp
mov ecx, dword [esp + 0x30]
mov edi, ebp
mov ebx, ecx
mov edx, ecx
shr ecx, 2
mov eax, esi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
lea edx, [ecx + 5]
cmp ecx, edx
mov dword [esp + 0x10], edx
jge 0x10018306
lea ecx, [esp + 0x24]
lea edx, [ebx + ebp]
push ecx
push 0
push eax
push edx
mov edi, eax
mov dword [esp + 0x34], 0
call fcn.10018890
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x10018306
mov esi, dword [esp + 0x28]
mov cl, byte [edi]
mov ebx, eax
sub ebx, esi
cmp cl, 0xe9
je 0x1001830a
cmp cl, 0xe0
je 0x1001830a
cmp cl, 0xc2
je 0x1001830a
cmp cl, 0xc3
je 0x1001830a
cmp cl, 0xcc
je 0x1001830a
cmp cl, 0xff
jne 0x100182d2
cmp byte [edi + 1], 0x25
je 0x1001830a
cmp cl, 0x26
je 0x100182f0
cmp cl, 0x2e
je 0x100182f0
cmp cl, 0x36
je 0x100182f0
cmp cl, 0xe3
je 0x100182f0
cmp cl, 0x64
je 0x100182f0
cmp cl, 0x65
jne 0x100182fc
cmp byte [edi + 1], 0xff
jne 0x100182fc
cmp byte [edi + 2], 0x25
je 0x1001830a
cmp ebx, dword [esp + 0x10]
jl 0x10018281
mov esi, dword [esp + 0x28]
cmp ebx, dword [esp + 0x10]
jge 0x1001832a
mov eax, dword [0x1003ef7c]
mov dword [esp + 0x10], 9
test eax, eax
jne 0x100183e3
jmp 0x100183d9
cmp ebx, 0x12
jbe 0x1001833c
mov dword [esp + 0x10], 6
jmp 0x100183d9
mov eax, dword [esp + 0x20]
lea ecx, [ebp + 0x17]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x20], eax
lea edx, [ebx + esi]
lea eax, [ebx + ebp]
mov dword [ebp + 0x18], edx
mov byte [ecx], bl
lea edi, [eax + 5]
mov byte [eax], 0xe9
inc eax
sub edx, edi
lea edi, [eax + 4]
mov dword [eax], edx
cmp edi, ecx
jae 0x1001837f
sub ecx, edi
mov eax, 0xcccccccc
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x40
push ebx
push esi
call fcn.10006390
test eax, eax
je 0x100183cf
push esi
call fcn.100186b0
mov edi, eax
add esp, 4
test edi, edi
je 0x10018430
cmp word [edi + 0x1c], 0x6544
je 0x10018430
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
push 0x40
push 0x40
push edi
call fcn.10006390
test eax, eax
jne 0x10018418
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov dword [0x1003ef84], edx
test ebp, ebp
je 0x100183f0
push ebp
call fcn.10017d90
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10018401
push eax
call fcn.10019670
add esp, 4
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [0x1003ef88], eax
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 8
ret 0x20
mov word [edi + 0x1c], 0x6544
mov word [edi + 0x1e], 0x6f74
mov word [edi + 0x20], 0x7275
mov word [edi + 0x22], 0x2173
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ebp
mov dword [eax + 0xc], esi
mov edx, dword [esp + 0x14]
mov dword [eax + 0x14], edx
mov ecx, dword [0x1003ef90]
mov dword [eax], ecx
mov dword [0x1003ef90], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1001846c
mov edx, dword [esp + 0x30]
add esi, edx
mov dword [eax], esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1001847a
sub ebx, dword [esp + 0x30]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x20