Function at 0x509960
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, 0x217c
call fcn.0053ae80
push ebx
push ebp
mov ebp, dword [esp + 0x2188]
xor eax, eax
push esi
cmp ebp, eax
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
je 0x509ad9
cmp dword [esp + 0x2194], eax
je 0x509ad9
cmp dword [esp + 0x2198], eax
je 0x509ad9
mov ebx, dword [ebp + 0x18]
lea eax, [esp + 0x34]
push eax
lea esi, [ebx + 0xa8]
mov dword [esp + 0x14], esi
call fcn.005124e0
mov edi, dword [esi + 4]
add esp, 4
test edi, edi
je 0x5099d8
push edi
call fcn.0050c0d0
push edi
mov dword [esi + 4], eax
call fcn.0053b09e
add esp, 8
mov eax, dword [esi]
test eax, eax
jne 0x509b0b
mov ecx, dword [esi + 8]
push ecx
call fcn.00510230
add esp, 4
test eax, eax
jne 0x509afd
mov edx, dword [esi + 8]
push 0x6cdd34
push edx
call fcn.0053b730
add esp, 8
test eax, eax
je 0x509a61
sub eax, dword [esi + 8]
mov edi, eax
mov dword [esp + 0x14], edi
lea eax, [edi + 1]
push eax
call fcn.0053b187
mov esi, dword [esi + 8]
mov ecx, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x20], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
lea eax, [ecx + edx + 1]
push eax
call fcn.0053a458
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
add esp, 8
mov word [ebx + 0x42c], ax
jmp 0x509a6f
mov ecx, dword [esi + 8]
push ecx
call fcn.0053d8c1
add esp, 4
mov edi, eax
push edi
lea edx, [esp + 0x190]
push 0x6cdeb8
push edx
call fcn.0053c4d8
lea eax, [esp + 0x198]
push 0
push eax
push ebp
call fcn.00510400
lea eax, [ebx + 0x41c]
push eax
push edi
call fcn.005101e0
add esp, 0x20
test eax, eax
jne 0x509ae7
push edi
lea ecx, [esp + 0x190]
push 0x6cdea4
push ecx
call fcn.0053c4d8
lea edx, [esp + 0x198]
push 3
push edx
push ebp
call fcn.00510400
add esp, 0x18
test edi, edi
je 0x509ad9
push edi
call fcn.0053b09e
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
test edi, edi
je 0x509c37
push edi
call fcn.0053b09e
add esp, 4
jmp 0x509c37
mov edi, dword [esi + 8]
lea edx, [ebx + 0x41c]
jmp 0x509c16
push 0x3a
push eax
call fcn.0050bbc0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x509b37
mov ecx, dword [esi]
add ecx, edi
push ecx
call fcn.0053a458
add esp, 4
mov word [ebx + 0x42c], ax
jmp 0x509b51
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x14], ecx
mov word [ebx + 0x42c], 0x50
mov edi, ecx
mov esi, dword [esi]
mov ecx, edi
mov edx, ecx
lea edi, [esp + 0x8c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x8c]
mov byte [esp + eax + 0x8b], 0
push ecx
call fcn.00510230
add esp, 4
test eax, eax
jne 0x509c09
lea edx, [esp + 0x8c]
lea eax, [esp + 0x18c]
push edx
push 0x6cde88
push eax
call fcn.0053c4d8
lea ecx, [esp + 0x198]
push 0
push ecx
push ebp
call fcn.00510400
lea eax, [ebx + 0x41c]
lea edx, [esp + 0xa4]
push eax
push edx
call fcn.005101e0
add esp, 0x20
test eax, eax
jne 0x509c33
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18c]
mov ecx, dword [eax]
push ecx
push 0x6cde6c
push edx
call fcn.0053c4d8
lea eax, [esp + 0x198]
push 3
push eax
push ebp
call fcn.00510400
add esp, 0x18
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
lea edx, [ebx + 0x41c]
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
cmp dword [esi], 0
jne 0x509c5c
xor ecx, ecx
lea edi, [ebx + 0x41c]
mov cx, word [ebx + 0x42c]
lea edx, [esp + 0x18c]
push ecx
push edi
push 0x6cde58
push edx
jmp 0x509c7a
xor eax, eax
lea edi, [ebx + 0x41c]
mov ax, word [ebx + 0x42c]
lea ecx, [esp + 0x18c]
push eax
push edi
push 0x6cde3c
push ecx
call fcn.0053c4d8
add esp, 0x10
lea edx, [esp + 0x18c]
push 0
push edx
push ebp
call fcn.00510400
mov cx, word [ebx + 0x42c]
mov edx, dword [ebp + 0xc]
lea eax, [ebx + 4]
push 1
push eax
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push edi
push edx
call fcn.0050fab0
add esp, 0x24
test eax, eax
je 0x509d1e
cmp eax, 0xffffffec
je 0x509ad9
cmp eax, 0xfffffff5
jne 0x509cdd
xor eax, eax
lea ecx, [esp + 0x18c]
mov ax, word [ebx + 0x42c]
push eax
push edi
push 0x6cde28
push ecx
jmp 0x509cf5
xor edx, edx
lea eax, [esp + 0x18c]
mov dx, word [ebx + 0x42c]
push edx
push edi
push 0x6cde14
push eax
call fcn.0053c4d8
add esp, 0x10
lea ecx, [esp + 0x18c]
push 3
push ecx
push ebp
call fcn.00510400
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
xor edx, edx
lea eax, [esp + 0x18c]
mov dx, word [ebx + 0x42c]
push edx
push edi
push 0x6cde00
push eax
call fcn.0053c4d8
lea ecx, [esp + 0x19c]
push 0
push ecx
push ebp
call fcn.00510400
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00511000
mov esi, eax
lea edx, [esp + 0x50]
push esi
push edx
call fcn.00512820
push esi
call fcn.0053b09e
lea eax, [esp + 0x5c]
push eax
call fcn.005127c0
add esp, 0x2c
mov esi, 1
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.005127c0
add esp, 4
push eax
push ebp
call fcn.00510400
mov edx, dword [ebx + 0x40]
add esp, 0xc
lea eax, [esp + 0x34]
push edx
push eax
call fcn.005127c0
mov ecx, dword [ebp + 0xc]
add esp, 4
push eax
push ecx
call fcn.00511b80
add esp, 0xc
test eax, eax
jne 0x509deb
lea edx, [esp + 0x18c]
push 0x6cddf0
push edx
call fcn.0053c4d8
lea eax, [esp + 0x194]
push 3
push eax
push ebp
call fcn.00510400
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
mov ecx, dword [ebx + 0x44]
lea eax, [esp + edx + 0x1198]
mov edx, dword [ebp + 0xc]
push eax
push ecx
push 0x1000
push 0x1000
push ebp
push edx
mov dword [esp + 0x40], esi
call fcn.0050fe00
add esp, 0x24
mov dword [esp + 0x20], eax
test eax, eax
jl 0x50a109
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x50a109
cmp dword [ebx + 4], esi
je 0x50a109
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x44]
add edx, eax
lea eax, [esp + 0x118c]
push eax
push ecx
mov dword [esp + 0x20], edx
call fcn.00511290
mov edx, eax
add esp, 8
mov ecx, dword [edx]
test ecx, ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov edx, dword [edx + 8]
mov dword [esp + 0x2c], edx
je 0x509deb
cmp eax, 0x1001
jg 0x50a038
mov ecx, eax
lea esi, [esp + 0x118c]
mov edx, ecx
lea edi, [esp + 0x18c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x190], 0
lea eax, [esp + 0x190]
push eax
push ebp
call fcn.00510400
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.00511330
mov ecx, 0xf
mov esi, eax
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xf
lea esi, [esp + 0x64]
lea edi, [ebp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x84]
push eax
call fcn.00511bc0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x509f1a
lea edi, [ebx + 0x448]
push edi
call fcn.00510f60
add esp, 4
test eax, eax
jne 0x509f1a
push edi
push esi
push edi
call fcn.00510f80
add esp, 0xc
mov eax, dword [ebp + 0x50]
lea esi, [eax - 0xc8]
cmp esi, 0xcc
ja case.0x509f37.203
xor ecx, ecx
mov cl, byte [esi + 0x50a134]
jmp dword [ecx*4 + 0x50a124]
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x50a06a
push eax
lea edx, [esp + 0x190]
push 0x6cdde0
push edx
call fcn.0053c4d8
lea eax, [esp + 0x198]
push 3
push eax
push ebp
call fcn.00510400
mov eax, dword [esp + 0x28]
push 0
mov ecx, dword [eax]
push ecx
lea ecx, [ebp + 0x4c]
push ecx
push eax
call fcn.005116d0
add esp, 0x28
test eax, eax
je 0x50a087
mov edx, dword [ebp + 0xc]
push edx
call fcn.0050faa0
call fcn.0050fa60
push ebp
mov dword [ebp + 0xc], eax
call fcn.0050b370
mov eax, dword [esp + 0x21a0]
mov ecx, dword [esp + 0x219c]
push eax
push ecx
push ebp
call fcn.00509960
add esp, 0x14
cmp eax, 1
jne 0x509adc
jmp 0x509fc9
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0x54]
test eax, eax
mov dword [ebx + 0x14], edx
jne 0x50a00c
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x50a029
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2194]
sub eax, edx
mov ecx, eax
lea esi, [esp + edx + 0x118c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2198]
mov dword [ecx], eax
lea eax, [esp + 0x34]
push eax
call fcn.00512710
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
mov edx, dword [esp + 0x2198]
mov dword [edx], 0
jmp 0x50a00c
lea eax, [esp + 0x18c]
push str.HTTP
push eax
call fcn.0053c4d8
lea ecx, [esp + 0x194]
push 3
push ecx
push ebp
call fcn.00510400
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
push 3
push 0x6cddb4
push ebp
call fcn.00510400
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
push 3
push str.COOKIE
push ebp
call fcn.00510400
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
lea edx, [esp + 0x18c]
push 0x6cdd78
push edx
call fcn.0053c4d8
lea eax, [esp + 0x194]
push 3
push eax
push ebp
call fcn.00510400
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
push eax
lea ecx, [esp + 0x190]
push 0x6cdd58
push ecx
call fcn.0053c4d8
lea edx, [esp + 0x198]
push 3
push edx
push ebp
call fcn.00510400
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret
push eax
push ebp
call fcn.005122d0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x217c
ret