Function at 0x404cb0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4324a4
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x443054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xa4]
mov dword [ebp - method.CSHA1.virtual_0], vtable.CSHA1.0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x114], 0x67452301
mov dword [ebp - 0x110], 0xefcdab89
mov dword [ebp - 0x10c], 0x98badcfe
mov dword [ebp - 0x108], 0x10325476
mov dword [ebp - 0x104], 0xc3d2e1f0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x170], 0
mov dword [edi + 0x460], 0xa
mov dword [edi + 0x464], 0
call fcn.004047e0
mov esi, eax
test esi, esi
je 0x404e4c
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
movq xmm0, qword [str.Connection]
mov ax, word [0x43f814]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0xa
movq qword [ebp - 0x30], xmm0
mov word [ebp - 0x28], ax
mov byte [ebp - 0x26], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push esi
call fcn.00402950
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x404e03
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404df9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40561b
push edx
push ecx
call fcn.0040ef78
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x4055fe
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40561b
jmp 0x404f33
mov ecx, dword [0x444ec8]
lea edx, [edi + 0x32a]
lea esi, [edi + 0x174]
lea eax, [ecx + 1]
mov dword [0x444ec8], eax
bswap ecx
mov dword [edi + 0x180], ecx
mov ecx, dword [edi + 0x344]
test edx, edx
je 0x404e99
cmp ecx, 0x18
ja 0x404e99
push ecx
lea eax, [edi + 0x210]
xorps xmm0, xmm0
push edx
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call fcn.0040fd70
add esp, 0xc
push esi
mov ecx, edi
mov dword [edi + 0x20c], 0x1000000
call fcn.00404970
mov esi, eax
test esi, esi
je 0x404f42
mov eax, dword [str.Login]
mov dword [ebp - 0x30], eax
mov al, byte [0x43f81c]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 5
mov byte [ebp - 0x2c], al
mov byte [ebp - 0x2b], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x174]
mov eax, dword [ecx]
lea edx, [ebp - 0x60]
push edx
mov eax, dword [eax + 0x1c]
call eax
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push esi
call fcn.00402950
lea ecx, [ebp - 0x60]
call fcn.00406840
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4055fe
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405620
push edx
push ecx
call fcn.0040ef78
add esp, 8
jmp 0x4055fe
lea ecx, [edi + 0x174]
push ecx
mov ecx, edi
call fcn.00404ac0
mov esi, eax
test esi, esi
je 0x404f96
mov eax, dword [str.Login]
mov dword [ebp - 0x30], eax
mov al, byte [0x43f81c]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 5
mov byte [ebp - 0x2c], al
mov byte [ebp - 0x2b], 0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x174]
mov eax, dword [ecx]
lea edx, [ebp - 0x60]
push edx
mov eax, dword [eax + 0x1c]
call eax
mov byte [ebp - 4], 6
jmp 0x404ef0
mov esi, dword [edi + 0x22c]
add edi, 0x3c0
push 0x82
push 0
push edi
bswap esi
call fcn.004102f0
mov eax, dword [ebp - 0x11c]
xorps xmm0, xmm0
push esi
mov esi, eax
movups xmmword [eax + 0x442], xmm0
mov dword [eax + 0x452], 0
lea eax, [esi + 0x230]
push eax
push edi
call fcn.0040fd70
push dword [esi + 0x368]
lea eax, [esi + 0x348]
push eax
lea eax, [esi + 0x3d4]
push eax
call fcn.0040fd70
push dword [esi + 0x3bc]
lea eax, [esi + 0x36c]
push eax
lea eax, [esi + 0x3f2]
push eax
call fcn.0040fd70
add esp, 0x30
mov dword [ebp - 0x114], 0x67452301
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x110], 0xefcdab89
mov dword [ebp - 0x10c], 0x98badcfe
mov dword [ebp - 0x108], 0x10325476
push 0x82
push edi
mov dword [ebp - 0x104], 0xc3d2e1f0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
call fcn.0040b430
mov ecx, dword [ebp - 0xfc]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], cl
mov ecx, dword [ebp - 0x100]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x13], al
mov eax, ecx
push 1
shr eax, 8
mov byte [ebp - 0x11], cl
lea ecx, [ebp - 0x118]
push 0x43f948
mov byte [ebp - 0x12], al
call fcn.0040b430
mov eax, dword [ebp - 0x100]
and eax, 0x1f8
cmp eax, 0x1c0
je 0x4050f4
nop dword [eax]
push 1
push 0x43f94c
lea ecx, [ebp - 0x118]
call fcn.0040b430
mov eax, dword [ebp - 0x100]
and eax, 0x1f8
cmp eax, 0x1c0
jne 0x4050d0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x118]
call fcn.0040b430
xor edx, edx
nop word [eax + eax]
mov eax, edx
mov ecx, 3
and eax, 3
sub ecx, eax
mov eax, edx
shr eax, 2
shl ecx, 3
mov eax, dword [ebp + eax*4 - 0x114]
shr eax, cl
mov byte [ebp + edx - 0xb8], al
inc edx
cmp edx, 0x14
jb 0x405110
push 0x48
lea eax, [ebp - 0x100]
mov dword [ebp - 0x104], 0
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x114], xmm0
call fcn.004102f0
add esp, 0xc
lea eax, [ebp - 0xf8]
xorps xmm0, xmm0
lea ecx, [ebp - 0x118]
movlpd qword [ebp - 0x18], xmm0
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040a050
mov ecx, dword [0x444ec8]
lea edx, [esi + 0x442]
mov eax, dword [ebp - 0xa8]
movups xmm0, xmmword [ebp - 0xb8]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], eax
lea eax, [ecx + 1]
mov dword [0x444ec8], eax
bswap ecx
mov dword [esi + 0x250], ecx
lea ecx, [esi + 0x244]
test edx, edx
je 0x4051d8
movups xmm0, xmmword [edx]
movups xmmword [esi + 0x2e0], xmm0
mov eax, dword [edx + 0x10]
mov dword [esi + 0x2f0], eax
mov dword [esi + 0x2dc], 0x14000000
push ecx
mov ecx, esi
call fcn.00404970
mov edi, eax
mov dword [ebp - 0x11c], edi
test edi, edi
je 0x405284
movq xmm0, qword [str.Challenge]
mov al, byte [0x43f828]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 9
movq qword [ebp - 0x30], xmm0
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], 0
mov byte [ebp - 4], 7
lea ecx, [esi + 0x244]
mov eax, dword [ecx]
lea edx, [ebp - 0x60]
push edx
mov eax, dword [eax + 0x1c]
call eax
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push edi
call fcn.00402950
lea ecx, [ebp - 0x60]
call fcn.00406840
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x405279
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40526f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405620
push edx
push ecx
call fcn.0040ef78
add esp, 8
mov esi, dword [ebp - 0x11c]
jmp 0x4055fe
lea ecx, [esi + 0x244]
push ecx
mov ecx, esi
call fcn.00404ac0
mov edi, eax
mov dword [ebp - 0x11c], edi
test edi, edi
je 0x4052e3
movq xmm0, qword [str.Challenge]
mov al, byte [0x43f828]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 9
movq qword [ebp - 0x30], xmm0
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], 0
mov byte [ebp - 4], 9
lea ecx, [esi + 0x244]
mov eax, dword [ecx]
lea edx, [ebp - 0x60]
push edx
mov eax, dword [eax + 0x1c]
call eax
mov byte [ebp - 4], 0xa
jmp 0x405230
mov eax, dword [esi + 0x228]
bswap eax
cmp eax, 1
jbe 0x40551a
mov ecx, esi
call fcn.00405630
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x30]
push 4
mov dword [ebp - 0x30], 0
push str.Open
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.00407bf0
push ecx
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 0xc
call fcn.00406250
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x468], 0x19
test eax, eax
je 0x40538b
cmp dword [ebp - 0x1c], 0x10
lea edx, [ebp - 0x30]
push eax
cmovae edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x1c8]
call fcn.00409880
add esp, 4
mov edx, 0x43f2c0
mov ecx, eax
call fcn.00408ee0
mov edx, str.Incompatible_capsule_protocol_version
lea ecx, [ebp - 0x1c8]
call fcn.00408ee0
mov byte [ebp - 4], 0xe
xorps xmm0, xmm0
mov edx, dword [ebp - 0x184]
mov eax, edx
and al, 0x22
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x14], 2
movq qword [ebp - 0x128], xmm0
mov dword [ebp - 0x120], 0
cmp al, 2
je 0x405407
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax]
test ecx, ecx
je 0x405407
mov eax, dword [ebp - 0x1b0]
cmp ecx, dword [ebp - 0x188]
cmovb ecx, dword [ebp - 0x188]
mov edx, dword [eax]
sub ecx, edx
jmp 0x40543a
test dl, 4
jne 0x40542e
mov eax, dword [ebp - 0x1a4]
mov edi, dword [eax]
test edi, edi
je 0x40542e
mov eax, dword [ebp - 0x1b4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax]
sub ecx, edx
add ecx, edi
jmp 0x40543a
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x128]
test edx, edx
je 0x405448
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00407bf0
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x46c]
call fcn.00406890
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x40548b
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405481
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405620
push edx
push ecx
call fcn.0040ef78
add esp, 8
lea ecx, [ebp - 0x1d8]
call fcn.00402df0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4054ca
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4054c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405620
push edx
push ecx
call fcn.0040ef78
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x405510
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405506
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405620
push edx
push ecx
call fcn.0040ef78
add esp, 8
mov esi, 0x19
jmp 0x4055fe
push 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x48]
push 0x43f2c3
mov byte [esi + 0x2f4], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00407bf0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x30]
push 0
mov dword [ebp - 0x30], 0
push 0x43f2c3
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.00407bf0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push 0
call fcn.00402950
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4055ba
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4055b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405620
push edx
push ecx
call fcn.0040ef78
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x4055fc
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4055f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405620
push edx
push ecx
call fcn.0040ef78
add esp, 8
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ef8b
mov esp, ebp
pop ebp
ret
call fcn.0041325f
call fcn.0041325f
int3