Function at 0x5b6958
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xcf
push 0
push 0
dec ecx
jne 0x5b6961
xchg dword [ebp - 4], ecx
push ebx
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x5b6f2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 1
jne 0x5b69b2
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dl, 0x2c
mov eax, dword [ebp - 4]
call fcn.0049c09c
dec eax
jg 0x5b6eed
lea edx, [ebp - 0x63c]
mov eax, dword [ebp - 4]
call fcn.0040a348
mov eax, dword [ebp - 0x63c]
call fcn.00405548
cmp eax, 2
jl 0x5b6eed
cmp dword [ebp + 0x10], 3
jne 0x5b6eed
xor eax, eax
mov dword [ebp - 0x38], eax
mov edx, 0x5b6f3c
lea eax, [ebp - 0x650]
call fcn.004032b0
imul eax, dword [ebp + 0x10], 0x4a3
lea edx, [eax + 0x7ce58c]
lea eax, [ebp - 0x650]
mov cl, 0xe
call fcn.00403280
lea edx, [ebp - 0x650]
lea eax, [ebp - 0x640]
call fcn.004054ec
mov edx, dword [ebp - 0x640]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0049d0c8
cmp byte [ebp - 5], 0x10
jne 0x5b6a90
cmp byte [ebp - 6], 0xff
jne 0x5b6a90
mov eax, dword [ebp - 0x2c]
call fcn.005b678c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
push dword [eax]
push 0x5b6f4c
lea edx, [ebp - 0x654]
mov eax, dword [ebp - 0x38]
call fcn.0040a83c
push dword [ebp - 0x654]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00405608
mov edx, dword [ebp + 0x14]
inc edx
mov eax, dword [ebp + 0x18]
xor ecx, ecx
call fcn.00403450
cmp byte [ebp - 5], 0x10
jne 0x5b6aee
cmp byte [ebp - 6], 0xff
jne 0x5b6aee
mov eax, dword [ebp + 8]
push dword [eax]
push 0x5b6f58
lea edx, [ebp - 0x658]
mov eax, dword [ebp - 0x30]
call fcn.0040a83c
push dword [ebp - 0x658]
push 0x5b6f64
lea edx, [ebp - 0x65c]
mov eax, dword [ebp - 0x34]
call fcn.0040a83c
push dword [ebp - 0x65c]
mov eax, dword [ebp + 8]
mov edx, 5
call fcn.00405608
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0x2c]
call fcn.00405748
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x5b6c62
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea edx, [ebp - 0x238]
mov ecx, 0x200
mov eax, dword [ebp - 0x10]
call fcn.005b3e44
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5b6b68
mov eax, dword [ebp + 8]
push dword [eax]
push 0x5b6f70
lea edx, [ebp - 0x660]
mov eax, dword [ebp - 0x14]
call fcn.0040a83c
push dword [ebp - 0x660]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00405608
cmp dword [ebp - 0x14], 0
jne 0x5b6c57
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.005b633c
test eax, eax
jne 0x5b6c57
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x438]
push eax
push 0x1ff
mov cl, byte [ebp - 6]
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 0x10]
call fcn.005b669c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5b6c57
mov edx, dword [ebp + 0x14]
inc edx
mov eax, dword [ebp + 0x18]
xor ecx, ecx
call fcn.00403450
mov eax, dword [ebp - 0x34]
dec eax
jne 0x5b6bf8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, 1
adc edx, 0
push edx
push eax
mov edx, dword [ebp + 0x18]
mov ecx, 0x200
mov eax, dword [ebp - 0x10]
call fcn.005b3e44
mov dword [ebp - 0x18], eax
jmp 0x5b6c11
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov edx, dword [ebp + 0x18]
mov ecx, 0x200
mov eax, dword [ebp - 0x10]
call fcn.005b3e44
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5b6c1c
xor eax, eax
mov dword [ebp - 0xc], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x638]
push eax
push 0x1ff
mov cl, 0xff
mov dl, 0xff
mov eax, dword [ebp - 0x10]
call fcn.005b669c
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea edx, [ebp - 0x238]
mov ecx, 0x200
mov eax, dword [ebp - 0x10]
call fcn.005b3ed4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5b6c72
mov eax, dword [ebp + 8]
mov edx, 0x5b6f7c
call fcn.00405550
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x1c], 0
je 0x5b6d90
mov eax, dword [ebp + 8]
push dword [eax]
push 0x5b6f88
lea edx, [ebp - 0x664]
mov eax, dword [ebp - 0x1c]
call fcn.0040a83c
push dword [ebp - 0x664]
push 0x5b6f94
lea edx, [ebp - 0x668]
mov eax, dword [ebp - 0x30]
call fcn.0040a83c
push dword [ebp - 0x668]
mov eax, dword [ebp + 8]
mov edx, 5
call fcn.00405608
cmp dword [ebp - 0x30], 3
jge 0x5b6d90
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
dec eax
je 0x5b6cde
dec eax
je 0x5b6d16
dec eax
je 0x5b6d4e
jmp 0x5b6d84
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x5b6fa0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x66c]
call fcn.0040a928
push dword [ebp - 0x66c]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00405608
jmp 0x5b6d84
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x5b6fac
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x670]
call fcn.0040a928
push dword [ebp - 0x670]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00405608
jmp 0x5b6d84
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x5b6fac
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x674]
call fcn.0040a928
push dword [ebp - 0x674]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00405608
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x5b6a90
cmp dword [ebp - 0xc], 0
jne 0x5b6ed9
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x5b6e04
cmp byte [ebp - 5], 0x10
jne 0x5b6e04
cmp byte [ebp - 6], 0xff
jne 0x5b6e04
lea edx, [ebp - 0x438]
mov eax, dword [ebp + 0x18]
mov ecx, 0x200
call fcn.0040a1a0
test al, al
jne 0x5b6e04
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0x89
jne 0x5b6df2
mov eax, dword [ebp + 0x18]
cmp byte [eax + 1], 0xab
jne 0x5b6df2
mov eax, dword [ebp + 0x18]
cmp byte [eax + 2], 0xcd
jne 0x5b6df2
mov eax, dword [ebp + 0x18]
cmp byte [eax + 3], 0xef
jne 0x5b6df2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
jmp 0x5b6e04
cmp dword [ebp - 0x34], 0
jne 0x5b6e04
mov dword [ebp - 0x34], 1
jmp 0x5b6a90
cmp dword [ebp - 0x30], 3
jge 0x5b6ed9
lea edx, [ebp - 0x438]
mov eax, dword [ebp + 0x18]
mov ecx, 0x200
call fcn.0040a1a0
test al, al
je 0x5b6ed9
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
dec eax
je 0x5b6e3d
dec eax
je 0x5b6e75
dec eax
je 0x5b6ead
jmp 0x5b6ecd
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x5b6fb8
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x678]
call fcn.0040a928
push dword [ebp - 0x678]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00405608
jmp 0x5b6ecd
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x5b6fc4
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x67c]
call fcn.0040a928
push dword [ebp - 0x67c]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00405608
jmp 0x5b6ecd
mov eax, dword [ebp + 8]
mov edx, 0x5b6fd0
call fcn.00405550
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x38], 1
jne 0x5b6eed
mov eax, dword [ebp - 0x2c]
call fcn.0040b038
jmp 0x5b6eed
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x5b6a90
cmp dword [ebp - 0xc], 0
je 0x5b6eed
cmp dword [ebp - 0x38], 1
jne 0x5b6eed
mov eax, dword [ebp - 0x2c]
call fcn.0040b038
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b6f32
lea eax, [ebp - 0x67c]
mov edx, 0xb
call fcn.0040529c
lea eax, [ebp - 0x640]
mov edx, 2
call fcn.0040529c
lea eax, [ebp - 0x2c]
call fcn.00405278
lea eax, [ebp - 4]
call fcn.00405278
ret