Function at 0x10018040
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 0x10018057
mov dword [eax], ebp
mov ebx, dword [esp + 0x28]
cmp ebx, ebp
je 0x10018061
mov dword [ebx], ebp
mov edi, dword [esp + 0x2c]
cmp edi, ebp
je 0x1001806b
mov dword [edi], ebp
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x10018075
mov dword [eax], ebp
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x1001807f
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1003ef40], eax
je 0x1001809c
pop edi
pop esi
pop ebp
mov eax, 0x10dd
pop ebx
add esp, 8
ret 0x20
mov eax, dword [0x1003ef44]
cmp eax, ebp
jne 0x1001838c
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jne 0x100180c0
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret 0x20
mov eax, dword [ecx]
cmp eax, ebp
jne 0x100180e0
pop edi
mov eax, 6
pop esi
pop ebp
mov dword [0x1003ef44], eax
mov dword [0x1003ef48], ecx
pop ebx
add esp, 8
ret 0x20
push ebp
push eax
mov dword [esp + 0x34], ebp
call fcn.10017940
mov esi, eax
push 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], esi
push eax
call fcn.10017940
cmp eax, esi
mov dword [esp + 0x20], eax
jne 0x10018117
mov eax, dword [0x1003ef3c]
test eax, eax
jne 0x10018311
jmp 0x100182e9
test ebx, ebx
je 0x1001811d
mov dword [ebx], esi
test edi, edi
je 0x10018123
mov dword [edi], eax
push 0x18
call fcn.10019d62
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10018142
mov dword [esp + 0x10], 8
jmp 0x100182e9
push esi
call fcn.100183a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1001815e
mov dword [esp + 0x10], 8
jmp 0x100182e9
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10018168
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 0x10018216
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.100187a0
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x10018216
mov esi, dword [esp + 0x28]
mov cl, byte [edi]
mov ebx, eax
sub ebx, esi
cmp cl, 0xe9
je 0x1001821a
cmp cl, 0xe0
je 0x1001821a
cmp cl, 0xc2
je 0x1001821a
cmp cl, 0xc3
je 0x1001821a
cmp cl, 0xcc
je 0x1001821a
cmp cl, 0xff
jne 0x100181e2
cmp byte [edi + 1], 0x25
je 0x1001821a
cmp cl, 0x26
je 0x10018200
cmp cl, 0x2e
je 0x10018200
cmp cl, 0x36
je 0x10018200
cmp cl, 0xe3
je 0x10018200
cmp cl, 0x64
je 0x10018200
cmp cl, 0x65
jne 0x1001820c
cmp byte [edi + 1], 0xff
jne 0x1001820c
cmp byte [edi + 2], 0x25
je 0x1001821a
cmp ebx, dword [esp + 0x10]
jl 0x10018191
mov esi, dword [esp + 0x28]
cmp ebx, dword [esp + 0x10]
jge 0x1001823a
mov eax, dword [0x1003ef3c]
mov dword [esp + 0x10], 9
test eax, eax
jne 0x100182f3
jmp 0x100182e9
cmp ebx, 0x12
jbe 0x1001824c
mov dword [esp + 0x10], 6
jmp 0x100182e9
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 0x1001828f
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 0x100182df
push esi
call fcn.100185c0
mov edi, eax
add esp, 4
test edi, edi
je 0x10018340
cmp word [edi + 0x1c], 0x6544
je 0x10018340
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
push 0x40
push 0x40
push edi
call fcn.10006390
test eax, eax
jne 0x10018328
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov dword [0x1003ef44], edx
test ebp, ebp
je 0x10018300
push ebp
call fcn.10017ca0
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10018311
push eax
call fcn.10019580
add esp, 4
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [0x1003ef48], 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 [0x1003ef50]
mov dword [eax], ecx
mov dword [0x1003ef50], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1001837c
mov edx, dword [esp + 0x30]
add esi, edx
mov dword [eax], esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1001838a
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