Function at 0x5877ac
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xcf
push 0
push 0
dec ecx
jne 0x5877b5
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.0040573c
xor eax, eax
push ebp
push 0x587d7f
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 0x587806
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.004bcc40
dec eax
jg 0x587d41
lea edx, [ebp - 0x63c]
mov eax, dword [ebp - 4]
call fcn.0040a298
mov eax, dword [ebp - 0x63c]
call fcn.0040554c
cmp eax, 2
jl 0x587d41
cmp dword [ebp + 0x10], 3
jne 0x587d41
xor eax, eax
mov dword [ebp - 0x38], eax
mov edx, 0x587d90
lea eax, [ebp - 0x650]
call fcn.004032c4
imul eax, dword [ebp + 0x10], 0x4a3
lea edx, [eax + 0x886024]
lea eax, [ebp - 0x650]
mov cl, 0xe
call fcn.00403294
lea edx, [ebp - 0x650]
lea eax, [ebp - 0x640]
call fcn.004054f0
mov edx, dword [ebp - 0x640]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004bdd94
cmp byte [ebp - 5], 0x10
jne 0x5878e4
cmp byte [ebp - 6], 0xff
jne 0x5878e4
mov eax, dword [ebp - 0x2c]
call fcn.005875e0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
push dword [eax]
push 0x587da0
lea edx, [ebp - 0x654]
mov eax, dword [ebp - 0x38]
call fcn.0040a78c
push dword [ebp - 0x654]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.0040560c
mov edx, dword [ebp + 0x14]
inc edx
mov eax, dword [ebp + 0x18]
xor ecx, ecx
call fcn.00403464
cmp byte [ebp - 5], 0x10
jne 0x587942
cmp byte [ebp - 6], 0xff
jne 0x587942
mov eax, dword [ebp + 8]
push dword [eax]
push 0x587dac
lea edx, [ebp - 0x658]
mov eax, dword [ebp - 0x30]
call fcn.0040a78c
push dword [ebp - 0x658]
push 0x587db8
lea edx, [ebp - 0x65c]
mov eax, dword [ebp - 0x34]
call fcn.0040a78c
push dword [ebp - 0x65c]
mov eax, dword [ebp + 8]
mov edx, 5
call fcn.0040560c
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0x2c]
call fcn.0040574c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x587ab6
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea edx, [ebp - 0x238]
mov ecx, 0x200
mov eax, dword [ebp - 0x10]
call fcn.00584c2c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5879bc
mov eax, dword [ebp + 8]
push dword [eax]
push 0x587dc4
lea edx, [ebp - 0x660]
mov eax, dword [ebp - 0x14]
call fcn.0040a78c
push dword [ebp - 0x660]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.0040560c
cmp dword [ebp - 0x14], 0
jne 0x587aab
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00587190
test eax, eax
jne 0x587aab
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.005874f0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x587aab
mov edx, dword [ebp + 0x14]
inc edx
mov eax, dword [ebp + 0x18]
xor ecx, ecx
call fcn.00403464
mov eax, dword [ebp - 0x34]
dec eax
jne 0x587a4c
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.00584c2c
mov dword [ebp - 0x18], eax
jmp 0x587a65
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov edx, dword [ebp + 0x18]
mov ecx, 0x200
mov eax, dword [ebp - 0x10]
call fcn.00584c2c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x587a70
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.005874f0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea edx, [ebp - 0x238]
mov ecx, 0x200
mov eax, dword [ebp - 0x10]
call fcn.00584cbc
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x587ac6
mov eax, dword [ebp + 8]
mov edx, 0x587dd0
call fcn.00405554
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x1c], 0
je 0x587be4
mov eax, dword [ebp + 8]
push dword [eax]
push 0x587ddc
lea edx, [ebp - 0x664]
mov eax, dword [ebp - 0x1c]
call fcn.0040a78c
push dword [ebp - 0x664]
push 0x587de8
lea edx, [ebp - 0x668]
mov eax, dword [ebp - 0x30]
call fcn.0040a78c
push dword [ebp - 0x668]
mov eax, dword [ebp + 8]
mov edx, 5
call fcn.0040560c
cmp dword [ebp - 0x30], 3
jge 0x587be4
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
dec eax
je 0x587b32
dec eax
je 0x587b6a
dec eax
je 0x587ba2
jmp 0x587bd8
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x587df4
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x66c]
call fcn.0040a878
push dword [ebp - 0x66c]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.0040560c
jmp 0x587bd8
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x587e00
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x670]
call fcn.0040a878
push dword [ebp - 0x670]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.0040560c
jmp 0x587bd8
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x587e00
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x674]
call fcn.0040a878
push dword [ebp - 0x674]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.0040560c
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x5878e4
cmp dword [ebp - 0xc], 0
jne 0x587d2d
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x587c58
cmp byte [ebp - 5], 0x10
jne 0x587c58
cmp byte [ebp - 6], 0xff
jne 0x587c58
lea edx, [ebp - 0x438]
mov eax, dword [ebp + 0x18]
mov ecx, 0x200
call fcn.0040a0f0
test al, al
jne 0x587c58
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0x89
jne 0x587c46
mov eax, dword [ebp + 0x18]
cmp byte [eax + 1], 0xab
jne 0x587c46
mov eax, dword [ebp + 0x18]
cmp byte [eax + 2], 0xcd
jne 0x587c46
mov eax, dword [ebp + 0x18]
cmp byte [eax + 3], 0xef
jne 0x587c46
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
jmp 0x587c58
cmp dword [ebp - 0x34], 0
jne 0x587c58
mov dword [ebp - 0x34], 1
jmp 0x5878e4
cmp dword [ebp - 0x30], 3
jge 0x587d2d
lea edx, [ebp - 0x438]
mov eax, dword [ebp + 0x18]
mov ecx, 0x200
call fcn.0040a0f0
test al, al
je 0x587d2d
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
dec eax
je 0x587c91
dec eax
je 0x587cc9
dec eax
je 0x587d01
jmp 0x587d21
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x587e0c
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x678]
call fcn.0040a878
push dword [ebp - 0x678]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.0040560c
jmp 0x587d21
add dword [ebp - 0x28], 1
adc dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0x587e18
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x67c]
call fcn.0040a878
push dword [ebp - 0x67c]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.0040560c
jmp 0x587d21
mov eax, dword [ebp + 8]
mov edx, 0x587e24
call fcn.00405554
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x38], 1
jne 0x587d41
mov eax, dword [ebp - 0x2c]
call fcn.0040b018
jmp 0x587d41
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x5878e4
cmp dword [ebp - 0xc], 0
je 0x587d41
cmp dword [ebp - 0x38], 1
jne 0x587d41
mov eax, dword [ebp - 0x2c]
call fcn.0040b018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587d86
lea eax, [ebp - 0x67c]
mov edx, 0xb
call fcn.004052b0
lea eax, [ebp - 0x640]
mov edx, 2
call fcn.004052b0
lea eax, [ebp - 0x2c]
call fcn.0040528c
lea eax, [ebp - 4]
call fcn.0040528c
ret