Function at 0x49dcb0
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.004d7800
add esp, 0xc
test eax, eax
je 0x49e678
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.004883e0
add esp, 0xc
test eax, eax
jne 0x49e5ed
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 0x49dd57
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488450
add esp, 4
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488510
add esp, 4
push eax
push edi
push ebx
call fcn.0049d840
add esp, 0x10
cmp eax, 2
je 0x49e51a
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488510
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x49e16a
cmp cl, 0xd
je 0x49e16a
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x10], 4
lea eax, [ecx + 1]
mov dword [esi + 0x44], eax
test ecx, ecx
jne 0x49e0c7
mov eax, dword [edi + 0x1c8]
mov eax, dword [eax + 0x44]
test al, 3
je 0x49dfb5
mov al, byte [edx]
mov edi, edx
test al, al
je 0x49ddc0
cmp al, 0x20
je 0x49ddb8
cmp al, 9
jne 0x49ddc0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49ddb0
push 5
push str.HTTP_
push edi
call fcn.00518810
add esp, 0xc
test eax, eax
jne 0x49de6f
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x49deb1
sub al, 0x32
cmp al, 1
ja 0x49e540
mov al, byte [edi + 6]
cmp al, 0x20
je 0x49ddfa
cmp al, 9
jne 0x49de6f
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 0x49de6f
cmp cl, 0x39
jg 0x49de6f
mov al, byte [edi + 8]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0x49de6f
cmp al, 0x39
jg 0x49de6f
mov al, byte [edi + 9]
mov byte [ebp - 2], al
cmp al, 0x30
jl 0x49de6f
cmp al, 0x39
jg 0x49de6f
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 0x49df5f
cmp al, 9
je 0x49df5f
cmp al, 0xa
jl 0x49de6f
cmp al, 0xd
jle 0x49df5f
lea edi, [ebx + 0x8a8]
push edi
call fcn.00488450
add esp, 4
push eax
push edi
call fcn.00488510
add esp, 4
push eax
push ebx
call fcn.0049d780
add esp, 0xc
cmp eax, 1
jne 0x49e5c5
mov edi, dword [ebp - 8]
mov dword [esi + 0x50], 0xc8
mov byte [edi + 0x314], 0xa
jmp 0x49e0ae
cmp byte [edi + 6], 0x2e
jne 0x49e5ab
mov al, byte [edi + 7]
cmp al, 0x30
je 0x49deca
cmp al, 0x31
jne 0x49e5ab
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x49dedb
cmp cl, 9
jne 0x49e5ab
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [ebp - 0x10], edx
cmp cl, 0x30
jl 0x49e5ab
cmp cl, 0x39
jg 0x49e5ab
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
cmp al, 0x30
jl 0x49e5ab
cmp al, 0x39
jg 0x49e5ab
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0x49e5ab
cmp al, 0x39
jg 0x49e5ab
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 0x49df5f
cmp al, 9
je 0x49df5f
cmp al, 0xa
jl 0x49e5ab
cmp al, 0xd
jg 0x49e5ab
cmp dword [esi + 0x50], 0x64
jl 0x49e591
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x49e55a
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], dl
cmp dword [esi + 0x6c], 3
jne 0x49df97
cmp dl, 0x14
je 0x49df97
push str.Lying_server__not_serving_HTTP_2
push ebx
call fcn.00491dd0
add esp, 8
cmp byte [edi + 0x314], 0x14
jae 0x49e0ae
mov eax, dword [edi + 0x2e8]
mov dword [eax], 0xffffffff
jmp 0x49e0ae
test eax, 0x40000
je 0x49e5c5
mov al, byte [edx]
mov edi, edx
test al, al
je 0x49dfd8
cmp al, 0x20
je 0x49dfd0
cmp al, 9
jne 0x49dfd8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49dfc8
push 5
push str.RTSP_
push edi
call fcn.00518810
add esp, 0xc
test eax, eax
jne 0x49e5c5
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x49e602
cmp al, 0x39
jg 0x49e602
cmp byte [edi + 6], 0x2e
jne 0x49e602
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x49e602
cmp al, 0x39
jg 0x49e602
mov al, byte [edi + 8]
cmp al, 0x20
je 0x49e02f
cmp al, 9
jne 0x49e602
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x49e602
cmp al, 0x39
jg 0x49e602
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x49e602
cmp dh, 0x39
jg 0x49e602
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x49e602
cmp dl, 0x39
jg 0x49e602
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 0x49e0a4
cmp al, 9
je 0x49e0a4
cmp al, 0xa
jl 0x49e602
cmp al, 0xd
jg 0x49e602
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], 0xb
push edi
push ebx
call fcn.0049d2a0
add esp, 8
test eax, eax
jne 0x49e5ed
mov dword [ebp - 0x10], 0xc
push ebx
call fcn.0049eb60
add esp, 4
test eax, eax
jne 0x49e5ed
push dword [ebp - 0xc]
push edi
push ebx
call fcn.0049bf10
add esp, 0xc
test eax, eax
jne 0x49e5ed
mov edi, dword [esi + 0x50]
lea eax, [ebx + 0x8a8]
push eax
sub edi, 0x64
call fcn.00488450
push eax
push dword [ebp - 0xc]
push 1
push ebx
call fcn.00491c80
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488450
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.00492230
add esp, 0x28
test eax, eax
jne 0x49e5ed
push eax
lea edi, [ebx + 0x8a8]
push edi
call fcn.00488450
add esp, 4
push eax
push ebx
call fcn.0049aab0
add esp, 0xc
test eax, eax
jne 0x49e5ed
push edi
call fcn.00488460
add esp, 4
jmp 0x49e507
mov eax, dword [esi + 0x50]
mov byte [ebp - 1], 0
cmp eax, 0x64
jl 0x49e21d
cmp eax, 0xc7
jg 0x49e21d
sub eax, 0x64
je 0x49e1ed
sub eax, 1
je 0x49e1a2
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
jmp 0x49e288
cmp byte [edi + 0x314], 0xb
jne 0x49e5f4
cmp dword [esi + 0x6c], 2
jne 0x49e1e1
push str.Received_101__Switching_to_HTTP_2
push ebx
call fcn.00491dd0
add esp, 8
mov dword [esi + 0x6c], 3
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
mov byte [ebp - 1], 1
jmp 0x49e288
mov byte [esi + 0xb3], 0
jmp 0x49e288
cmp dword [esi + 0x68], 0
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
jle 0x49e288
or dword [esi + 0x54], 2
push 0
push ebx
mov dword [esi + 0x68], 0
call fcn.00482f90
add esp, 8
jmp 0x49e288
cmp dword [esi + 0x6c], 2
jne 0x49e22e
push dword [ebx + 0x7c]
call fcn.00483070
add esp, 4
mov eax, dword [esi]
and eax, dword [esi + 4]
mov byte [esi + 0xb3], 0
cmp eax, 0xffffffff
jne 0x49e288
cmp byte [esi + 0xba], 0
jne 0x49e288
cmp byte [edi + 0x1ae], 0
jne 0x49e288
cmp byte [edi + 0x314], 0xb
jne 0x49e288
mov eax, dword [edi + 0x1c8]
test dword [eax + 0x44], 0x40000
jne 0x49e288
cmp byte [ebx + 0xd8a], 5
je 0x49e288
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push ebx
call fcn.00491dd0
push 2
push edi
call fcn.00492fd0
add esp, 0x10
cmp byte [esi + 0xb3], 0
jne 0x49e2a2
push ebx
call fcn.0049d1d0
add esp, 4
test eax, eax
jne 0x49e5ed
cmp byte [edi + 0x1ae], 0
je 0x49e2e6
mov eax, dword [ebx + 0xd8]
cmp eax, 0x191
jne 0x49e2c1
cmp dword [edi + 0x200], 2
je 0x49e2d1
cmp eax, 0x197
jne 0x49e2e6
cmp dword [edi + 0x204], 2
jne 0x49e2e6
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push ebx
call fcn.00491dd0
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.00488450
add esp, 4
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488510
add esp, 4
push eax
push edi
push ebx
call fcn.00492230
add esp, 0x10
test eax, eax
jne 0x49e5ed
push eax
push dword [ebp - 0x10]
push ebx
call fcn.0049aab0
add esp, 0xc
test eax, eax
jne 0x49e5ed
push ebx
call fcn.0049e720
add esp, 4
test al, al
jne 0x49e65b
mov eax, dword [esi + 0x50]
cmp eax, 0x64
jl 0x49e369
cmp eax, 0xc7
jg 0x49e369
mov eax, dword [ebx + 0xc0]
jmp 0x49e36b
xor eax, eax
push ebx
mov dword [ebx + 0xc8], eax
call fcn.0049afc0
add esp, 4
test eax, eax
jne 0x49e5ed
cmp dword [esi + 0x50], 0x12c
jl 0x49e4e1
mov edi, dword [ebp - 8]
cmp byte [edi + 0x1b8], al
jne 0x49e4bd
cmp byte [edi + 0x1ae], al
jne 0x49e4bd
cmp byte [ebx + 0xd9f], al
jne 0x49e4c6
mov al, byte [ebx + 0xd8a]
dec al
cmp al, 3
ja 0x49e4bd
push 0
push ebx
call fcn.00482f90
add esp, 8
cmp byte [esi + 0xb7], 0
jne 0x49e4bd
cmp dword [esi + 0x50], 0x1a1
jne 0x49e458
cmp byte [ebx + 0xd93], 0
je 0x49e458
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x49e40e
cmp dword [esi + 0x68], 1
jne 0x49e40e
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push ebx
call fcn.00491dd0
add esp, 8
jmp 0x49e433
push str.Got_HTTP_failure_417_while_sending_data
push ebx
call fcn.00491dd0
push 2
push edi
call fcn.00492fd0
push edi
push ebx
call fcn.0049db00
add esp, 0x18
test eax, eax
jne 0x49e5ed
push dword [ebx + 0xcdc]
mov byte [ebx + 0xd94], 1
call dword [0x579348]
push esi
push ebx
mov dword [ebx + 0x110], eax
call fcn.0049fb00
add esp, 0xc
jmp 0x49e4bd
cmp byte [ebx + 0x6bb], 0
je 0x49e482
push str.HTTP_error_before_end_of_send__keep_sending
push ebx
call fcn.00491dd0
add esp, 8
cmp dword [esi + 0x68], 0
jle 0x49e4bd
or dword [esi + 0x54], 2
mov dword [esi + 0x68], 0
jmp 0x49e4bd
push str.HTTP_error_before_end_of_send__stop_sending
push ebx
call fcn.00491dd0
push 2
push edi
call fcn.00492fd0
push esi
push ebx
call fcn.0049fb00
add esp, 0x18
test eax, eax
jne 0x49e5ed
mov byte [esi + 0xb7], 1
cmp byte [ebx + 0xd93], al
je 0x49e4bd
mov dword [esi + 0x68], 3
cmp byte [ebx + 0xd9f], 0
je 0x49e4e1
cmp dword [edi + 0x1e4], 0xffffffff
je 0x49e4e1
push str.Keep_sending_data_to_get_tossed_away
push ebx
call fcn.00491dd0
add esp, 8
or dword [esi + 0x54], 2
cmp byte [esi + 0xb3], 0
je 0x49e60e
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488460
add esp, 4
cmp byte [ebp - 1], 0
jne 0x49e706
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49e5cc
mov edi, dword [ebp - 8]
jmp 0x49dcd8
push 2
push edi
call fcn.00492fd0
add esp, 8
cmp byte [ebx + 0x6dc], 0
je 0x49e6f8
mov byte [esi + 0xb3], 0
mov al, 1
jmp 0x49e5cf
push str.Unsupported_HTTP_version_in_response
push ebx
call fcn.00491d10
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.00491d10
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.00491d10
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.00491d10
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 0x49e5eb
test al, al
jne 0x49e5eb
lea eax, [ebx + 0x8a8]
push eax
call fcn.004883f0
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.00491d10
add esp, 8
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x147], 0
je 0x49e61e
mov byte [esi + 0xb5], 1
cmp dword [esi + 8], 0
jne 0x49e631
cmp dword [esi + 0xc], 0
jne 0x49e631
mov byte [esi + 0xb5], 1
lea edi, [ebx + 0x8a8]
push edi
call fcn.00488450
add esp, 4
push eax
push edi
call fcn.00488510
add esp, 4
push eax
push 1
push ebx
call fcn.00491c80
add esp, 0x10
jmp 0x49e5cc
push dword [esi + 0x50]
push str.The_requested_URL_returned_error:__d
push ebx
call fcn.00491d10
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.004883e0
add esp, 0xc
test eax, eax
jne 0x49e5ed
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
add dword [ecx], eax
cmp dword [esi + 0x44], 0
jne 0x49e5cc
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488450
add esp, 4
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488510
add esp, 4
push eax
push edi
push ebx
call fcn.0049d840
add esp, 0x10
cmp eax, 2
jne 0x49e5cc
push eax
push edi
mov byte [esi + 0xb3], 0
call fcn.00492fd0
add esp, 8
cmp byte [ebx + 0x6dc], 0
jne 0x49e539
push str.Received_HTTP_0.9_when_not_allowed
push ebx
call fcn.00491d10
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret