Function at 0x49dd10
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov byte [ebp + 0xb], 0
mov edi, dword [ebx + 0x18]
lea esi, [ebx + 0x88]
mov dword [ebp - 8], edi
mov dword [ecx], 0
push eax
push 0xa
push dword [ebp + 0xc]
call fcn.004d7870
add esp, 0xc
test eax, eax
je 0x49e6d8
mov edx, dword [ebp + 0xc]
lea ecx, [ebx + 0x8a8]
sub eax, edx
inc eax
push eax
push edx
push ecx
mov dword [ebp - 0x10], eax
call fcn.00488410
add esp, 0xc
test eax, eax
jne 0x49e64d
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
sub dword [ebp + 0x10], eax
add dword [ebp + 0xc], eax
add dword [ecx], eax
cmp dword [esi + 0x44], 0
jne 0x49ddb7
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488480
add esp, 4
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488540
add esp, 4
push eax
push edi
push ebx
call fcn.0049d8a0
add esp, 0x10
cmp eax, 2
je 0x49e57a
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488540
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x49e1ca
cmp cl, 0xd
je 0x49e1ca
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x10], 4
lea eax, [ecx + 1]
mov dword [esi + 0x44], eax
test ecx, ecx
jne 0x49e127
mov eax, dword [edi + 0x1c8]
mov eax, dword [eax + 0x44]
test al, 3
je 0x49e015
mov al, byte [edx]
mov edi, edx
test al, al
je 0x49de20
cmp al, 0x20
je 0x49de18
cmp al, 9
jne 0x49de20
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49de10
push 5
push str.HTTP_
push edi
call fcn.00518870
add esp, 0xc
test eax, eax
jne 0x49decf
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x49df11
sub al, 0x32
cmp al, 1
ja 0x49e5a0
mov al, byte [edi + 6]
cmp al, 0x20
je 0x49de5a
cmp al, 9
jne 0x49decf
movsx eax, cl
mov cl, byte [edi + 7]
sub eax, 0x30
lea edx, [eax + eax*4]
add edx, edx
mov dword [ebp - 0x10], edx
cmp cl, 0x30
jl 0x49decf
cmp cl, 0x39
jg 0x49decf
mov al, byte [edi + 8]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0x49decf
cmp al, 0x39
jg 0x49decf
mov al, byte [edi + 9]
mov byte [ebp - 2], al
cmp al, 0x30
jl 0x49decf
cmp al, 0x39
jg 0x49decf
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 1]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 2]
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [esi + 0x50], eax
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x49dfbf
cmp al, 9
je 0x49dfbf
cmp al, 0xa
jl 0x49decf
cmp al, 0xd
jle 0x49dfbf
lea edi, [ebx + 0x8a8]
push edi
call fcn.00488480
add esp, 4
push eax
push edi
call fcn.00488540
add esp, 4
push eax
push ebx
call fcn.0049d7e0
add esp, 0xc
cmp eax, 1
jne 0x49e625
mov edi, dword [ebp - 8]
mov dword [esi + 0x50], 0xc8
mov byte [edi + 0x314], 0xa
jmp 0x49e10e
cmp byte [edi + 6], 0x2e
jne 0x49e60b
mov al, byte [edi + 7]
cmp al, 0x30
je 0x49df2a
cmp al, 0x31
jne 0x49e60b
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x49df3b
cmp cl, 9
jne 0x49e60b
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [ebp - 0x10], edx
cmp cl, 0x30
jl 0x49e60b
cmp cl, 0x39
jg 0x49e60b
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
cmp al, 0x30
jl 0x49e60b
cmp al, 0x39
jg 0x49e60b
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0x49e60b
cmp al, 0x39
jg 0x49e60b
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 2]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 1]
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [esi + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x49dfbf
cmp al, 9
je 0x49dfbf
cmp al, 0xa
jl 0x49e60b
cmp al, 0xd
jg 0x49e60b
cmp dword [esi + 0x50], 0x64
jl 0x49e5f1
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x49e5ba
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], dl
cmp dword [esi + 0x6c], 3
jne 0x49dff7
cmp dl, 0x14
je 0x49dff7
push str.Lying_server__not_serving_HTTP_2
push ebx
call fcn.00491e10
add esp, 8
cmp byte [edi + 0x314], 0x14
jae 0x49e10e
mov eax, dword [edi + 0x2e8]
mov dword [eax], 0xffffffff
jmp 0x49e10e
test eax, 0x40000
je 0x49e625
mov al, byte [edx]
mov edi, edx
test al, al
je 0x49e038
cmp al, 0x20
je 0x49e030
cmp al, 9
jne 0x49e038
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49e028
push 5
push str.RTSP_
push edi
call fcn.00518870
add esp, 0xc
test eax, eax
jne 0x49e625
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x49e662
cmp al, 0x39
jg 0x49e662
cmp byte [edi + 6], 0x2e
jne 0x49e662
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x49e662
cmp al, 0x39
jg 0x49e662
mov al, byte [edi + 8]
cmp al, 0x20
je 0x49e08f
cmp al, 9
jne 0x49e662
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x49e662
cmp al, 0x39
jg 0x49e662
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x49e662
cmp dh, 0x39
jg 0x49e662
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x49e662
cmp dl, 0x39
jg 0x49e662
movsx eax, al
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [esi + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x49e104
cmp al, 9
je 0x49e104
cmp al, 0xa
jl 0x49e662
cmp al, 0xd
jg 0x49e662
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], 0xb
push edi
push ebx
call fcn.0049d300
add esp, 8
test eax, eax
jne 0x49e64d
mov dword [ebp - 0x10], 0xc
push ebx
call fcn.0049ebc0
add esp, 4
test eax, eax
jne 0x49e64d
push dword [ebp - 0xc]
push edi
push ebx
call fcn.0049bf70
add esp, 0xc
test eax, eax
jne 0x49e64d
mov edi, dword [esi + 0x50]
lea eax, [ebx + 0x8a8]
push eax
sub edi, 0x64
call fcn.00488480
push eax
push dword [ebp - 0xc]
push 1
push ebx
call fcn.00491cc0
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488480
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0xc]
or eax, 0x20
cmp edi, 0x64
cmovae eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.00492270
add esp, 0x28
test eax, eax
jne 0x49e64d
push eax
lea edi, [ebx + 0x8a8]
push edi
call fcn.00488480
add esp, 4
push eax
push ebx
call fcn.0049ab10
add esp, 0xc
test eax, eax
jne 0x49e64d
push edi
call fcn.00488490
add esp, 4
jmp 0x49e567
mov eax, dword [esi + 0x50]
mov byte [ebp - 1], 0
cmp eax, 0x64
jl 0x49e27d
cmp eax, 0xc7
jg 0x49e27d
sub eax, 0x64
je 0x49e24d
sub eax, 1
je 0x49e202
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
jmp 0x49e2e8
cmp byte [edi + 0x314], 0xb
jne 0x49e654
cmp dword [esi + 0x6c], 2
jne 0x49e241
push str.Received_101__Switching_to_HTTP_2
push ebx
call fcn.00491e10
add esp, 8
mov dword [esi + 0x6c], 3
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
mov byte [ebp - 1], 1
jmp 0x49e2e8
mov byte [esi + 0xb3], 0
jmp 0x49e2e8
cmp dword [esi + 0x68], 0
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
jle 0x49e2e8
or dword [esi + 0x54], 2
push 0
push ebx
mov dword [esi + 0x68], 0
call fcn.00482fc0
add esp, 8
jmp 0x49e2e8
cmp dword [esi + 0x6c], 2
jne 0x49e28e
push dword [ebx + 0x7c]
call fcn.004830a0
add esp, 4
mov eax, dword [esi]
and eax, dword [esi + 4]
mov byte [esi + 0xb3], 0
cmp eax, 0xffffffff
jne 0x49e2e8
cmp byte [esi + 0xba], 0
jne 0x49e2e8
cmp byte [edi + 0x1ae], 0
jne 0x49e2e8
cmp byte [edi + 0x314], 0xb
jne 0x49e2e8
mov eax, dword [edi + 0x1c8]
test dword [eax + 0x44], 0x40000
jne 0x49e2e8
cmp byte [ebx + 0xd8a], 5
je 0x49e2e8
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push ebx
call fcn.00491e10
push 2
push edi
call fcn.00493010
add esp, 0x10
cmp byte [esi + 0xb3], 0
jne 0x49e302
push ebx
call fcn.0049d230
add esp, 4
test eax, eax
jne 0x49e64d
cmp byte [edi + 0x1ae], 0
je 0x49e346
mov eax, dword [ebx + 0xd8]
cmp eax, 0x191
jne 0x49e321
cmp dword [edi + 0x200], 2
je 0x49e331
cmp eax, 0x197
jne 0x49e346
cmp dword [edi + 0x204], 2
jne 0x49e346
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push ebx
call fcn.00491e10
add esp, 8
mov byte [ebx + 0xd91], 1
mov eax, dword [esi + 0x50]
sub eax, 0x64
cmp eax, 0x64
lea eax, [ebx + 0x8a8]
push eax
sbb edi, edi
and edi, 0x20
add edi, 4
call fcn.00488480
add esp, 4
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488540
add esp, 4
push eax
push edi
push ebx
call fcn.00492270
add esp, 0x10
test eax, eax
jne 0x49e64d
push eax
push dword [ebp - 0x10]
push ebx
call fcn.0049ab10
add esp, 0xc
test eax, eax
jne 0x49e64d
push ebx
call fcn.0049e780
add esp, 4
test al, al
jne 0x49e6bb
mov eax, dword [esi + 0x50]
cmp eax, 0x64
jl 0x49e3c9
cmp eax, 0xc7
jg 0x49e3c9
mov eax, dword [ebx + 0xc0]
jmp 0x49e3cb
xor eax, eax
push ebx
mov dword [ebx + 0xc8], eax
call fcn.0049b020
add esp, 4
test eax, eax
jne 0x49e64d
cmp dword [esi + 0x50], 0x12c
jl 0x49e541
mov edi, dword [ebp - 8]
cmp byte [edi + 0x1b8], al
jne 0x49e51d
cmp byte [edi + 0x1ae], al
jne 0x49e51d
cmp byte [ebx + 0xd9f], al
jne 0x49e526
mov al, byte [ebx + 0xd8a]
dec al
cmp al, 3
ja 0x49e51d
push 0
push ebx
call fcn.00482fc0
add esp, 8
cmp byte [esi + 0xb7], 0
jne 0x49e51d
cmp dword [esi + 0x50], 0x1a1
jne 0x49e4b8
cmp byte [ebx + 0xd93], 0
je 0x49e4b8
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x49e46e
cmp dword [esi + 0x68], 1
jne 0x49e46e
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push ebx
call fcn.00491e10
add esp, 8
jmp 0x49e493
push str.Got_HTTP_failure_417_while_sending_data
push ebx
call fcn.00491e10
push 2
push edi
call fcn.00493010
push edi
push ebx
call fcn.0049db60
add esp, 0x18
test eax, eax
jne 0x49e64d
push dword [ebx + 0xcdc]
mov byte [ebx + 0xd94], 1
call dword [0x579348]
push esi
push ebx
mov dword [ebx + 0x110], eax
call fcn.0049fb60
add esp, 0xc
jmp 0x49e51d
cmp byte [ebx + 0x6bb], 0
je 0x49e4e2
push str.HTTP_error_before_end_of_send__keep_sending
push ebx
call fcn.00491e10
add esp, 8
cmp dword [esi + 0x68], 0
jle 0x49e51d
or dword [esi + 0x54], 2
mov dword [esi + 0x68], 0
jmp 0x49e51d
push str.HTTP_error_before_end_of_send__stop_sending
push ebx
call fcn.00491e10
push 2
push edi
call fcn.00493010
push esi
push ebx
call fcn.0049fb60
add esp, 0x18
test eax, eax
jne 0x49e64d
mov byte [esi + 0xb7], 1
cmp byte [ebx + 0xd93], al
je 0x49e51d
mov dword [esi + 0x68], 3
cmp byte [ebx + 0xd9f], 0
je 0x49e541
cmp dword [edi + 0x1e4], 0xffffffff
je 0x49e541
push str.Keep_sending_data_to_get_tossed_away
push ebx
call fcn.00491e10
add esp, 8
or dword [esi + 0x54], 2
cmp byte [esi + 0xb3], 0
je 0x49e66e
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488490
add esp, 4
cmp byte [ebp - 1], 0
jne 0x49e766
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49e62c
mov edi, dword [ebp - 8]
jmp 0x49dd38
push 2
push edi
call fcn.00493010
add esp, 8
cmp byte [ebx + 0x6dc], 0
je 0x49e758
mov byte [esi + 0xb3], 0
mov al, 1
jmp 0x49e62f
push str.Unsupported_HTTP_version_in_response
push ebx
call fcn.00491d50
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x66666667
imul edx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x10]
lea eax, [ecx + ecx*4]
add eax, eax
sub edx, eax
push edx
push ecx
push str.Unsupported_HTTP_version___u._d__in_response
push ebx
call fcn.00491d50
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_response_code_in_HTTP_response
push ebx
call fcn.00491d50
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_1_subversion_in_response
push ebx
call fcn.00491d50
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0xb3], 0
mov al, byte [ebp + 0xb]
cmp byte [esi + 0xb3], 0
jne 0x49e64b
test al, al
jne 0x49e64b
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488420
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.unexpected_101_response_code
push ebx
call fcn.00491d50
add esp, 8
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x147], 0
je 0x49e67e
mov byte [esi + 0xb5], 1
cmp dword [esi + 8], 0
jne 0x49e691
cmp dword [esi + 0xc], 0
jne 0x49e691
mov byte [esi + 0xb5], 1
lea edi, [ebx + 0x8a8]
push edi
call fcn.00488480
add esp, 4
push eax
push edi
call fcn.00488540
add esp, 4
push eax
push 1
push ebx
call fcn.00491cc0
add esp, 0x10
jmp 0x49e62c
push dword [esi + 0x50]
push str.The_requested_URL_returned_error:__d
push ebx
call fcn.00491d50
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
lea eax, [ebx + 0x8a8]
push dword [ebp + 0xc]
push eax
call fcn.00488410
add esp, 0xc
test eax, eax
jne 0x49e64d
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
add dword [ecx], eax
cmp dword [esi + 0x44], 0
jne 0x49e62c
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488480
add esp, 4
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488540
add esp, 4
push eax
push edi
push ebx
call fcn.0049d8a0
add esp, 0x10
cmp eax, 2
jne 0x49e62c
push eax
push edi
mov byte [esi + 0xb3], 0
call fcn.00493010
add esp, 8
cmp byte [ebx + 0x6dc], 0
jne 0x49e599
push str.Received_HTTP_0.9_when_not_allowed
push ebx
call fcn.00491d50
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret