Function at 0x501674
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe04
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x51fafc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x1c], 0
jl 0x5016cb
imul eax, dword [ebp - 0x1c], 0x7d
lea edx, [eax*4 + 0x51e74c]
mov eax, 0x514d28
mov ecx, 0xe
call fcn.00402f20
mov dword [ebp - 8], 0xe
jmp 0x5016d0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x501af6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x38], eax
jmp 0x501ad7
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 0x2c]
call fcn.00500c04
call fcn.00500c3c
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x41], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0xcc
jne 0x50172d
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx + 1]
mov ax, word [eax]
push eax
call dword [0x514d20]
movsx eax, ax
add dword [ebp - 0x2c], eax
jmp 0x501ad7
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0xe9
jne 0x501753
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx + 1]
mov eax, dword [eax]
add eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
jmp 0x501ad7
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0x60
jne 0x501775
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx + 1], 0x61
jne 0x501775
add dword [ebp - 0x2c], 2
jmp 0x501ad7
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0xe8
jne 0x501835
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx + 1]
mov eax, dword [eax]
add eax, dword [ebp - 0x2c]
add eax, 5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
cmp byte [eax + edx], 0x58
jne 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
lea eax, [eax + edx + 1]
cmp word [eax], 0xc083
jne 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
lea eax, [eax + edx + 4]
cmp word [eax], 0xe0ff
jne 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
movsx eax, byte [eax + edx + 3]
mov edx, dword [ebp - 0x2c]
add edx, 5
add eax, edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
add eax, edx
cmp word [eax], 0xc083
jne 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
cmp byte [eax + edx + 3], 0x50
jne 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
cmp byte [eax + edx + 4], 0xc3
jne 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
movsx eax, byte [eax + edx + 2]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
jmp 0x501ad7
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0x68
jne 0x501863
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx + 1]
mov eax, dword [eax]
mov edx, dword [ebp - 0x38]
mov dword [ebp + edx*4 - 0x1d4], eax
mov byte [ebp - 0x41], 0
jmp 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0x81
jne 0x5018a8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx + 1], 0x34
jne 0x5018a8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx + 2], 0x24
jne 0x5018a8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx + 3]
mov eax, dword [eax]
mov edx, dword [ebp - 0x38]
xor dword [ebp + edx*4 - 0x1d4], eax
mov byte [ebp - 0x41], 0
jmp 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0xff
jne 0x501951
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx + 1], 0x14
jne 0x501951
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx + 2], 0x24
jne 0x501951
cmp dword [ebp - 0x38], 0
jl 0x501941
mov eax, dword [ebp - 0x38]
inc eax
shl eax, 2
mov edx, 0x8000
sub edx, eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
cmp eax, 0
jl 0x50191f
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x30]
shl eax, 2
add eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
lea eax, [edx + eax]
mov edx, dword [ebp - 0x30]
mov edx, dword [ebp + edx*4 - 0x1d4]
mov dword [eax], edx
dec dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0xffffffff
jne 0x5018f8
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 0x34]
call fcn.00500c04
push ebp
call fcn.00500c3c
mov ecx, eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
call fcn.00501594
pop ecx
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 0x41], 0
jmp 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0x54
jne 0x501966
mov byte [ebp - 0x41], 0
jmp 0x501a07
cmp dword [ebp - 0x1c], 0
jge 0x5019c5
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
add eax, edx
cmp dword [eax], 0x28ec81
jne 0x501991
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx + 4]
cmp word [eax], 0
jne 0x501991
inc dword [ebp - 0x40]
jmp 0x501a07
cmp dword [ebp - 0x40], 1
jne 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0xe8
jne 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx + 1]
mov eax, dword [eax]
add eax, dword [ebp - 0x2c]
add eax, 5
mov dword [ebp - 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x501b00
cmp dword [ebp - 0x1c], 0
jl 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
add eax, edx
cmp dword [eax], 0x5424848b
jne 0x501a07
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx + 4]
test dword [eax], 0xffffff
jne 0x501a07
mov eax, dword [ebp - 0x1c]
cmp dword [eax*4 + 0x51fad4], 0
jne 0x501a07
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov dword [eax*4 + 0x51fad4], edx
cmp byte [ebp - 0x41], 0
je 0x501a1d
push ebp
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.00501594
pop ecx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0xc3
je 0x501a5c
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx], 0xc2
jne 0x501ad1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov al, byte [eax + edx + 1]
sub al, 4
je 0x501a4f
sub al, 4
jne 0x501ad1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx + 2], 0
jne 0x501ad1
cmp dword [ebp - 0x1c], 0
jl 0x501aec
cmp dword [ebp - 4], 4
jne 0x501ac3
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
imul eax, dword [ebp - 0x1c], 0x7d
lea eax, [eax*4 + 0x51e74c]
mov edx, dword [ebp - 0x18]
lea eax, [eax + edx + 2]
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x18]
sub edx, 6
mov dword [eax], edx
imul eax, dword [ebp - 0x1c], 0x7d
lea eax, [eax*4 + 0x51e74c]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx + 2]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
sub edx, 6
mov dword [eax], edx
imul eax, dword [ebp - 0x1c], 0x7d
lea eax, [eax*4 + 0x51e74c]
mov edx, dword [ebp - 0x1c]
mov dword [edx*4 + 0x51e724], eax
jmp 0x501aec
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [eax*4 + 0x51fad4], edx
jmp 0x501aec
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x501aec
mov eax, dword [ebp - 0x2c]
cmp eax, dword [0x527afc]
jl 0x5016e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x501b00
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret