Function at 0x497ea0
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
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp + 0xb], 0
mov edi, dword [esi + 0x18]
lea ebx, [esi + 0x88]
mov dword [ebp - 8], edi
mov dword [ecx], 0
push eax
push 0xa
push dword [ebp + 0xc]
call fcn.004f1b30
add esp, 0xc
test eax, eax
je 0x49882b
mov ecx, dword [ebp + 0xc]
sub eax, ecx
inc eax
push eax
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x8a8]
push ecx
push eax
call fcn.00482b30
add esp, 0xc
test eax, eax
jne 0x4986e8
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 [ebx + 0x44], 0
jne 0x497f47
lea eax, [esi + 0x8a8]
push eax
call fcn.00482ba0
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.00482bb0
add esp, 4
push eax
push edi
push esi
call fcn.004979e0
add esp, 0x10
cmp eax, 2
je 0x4986ef
lea eax, [esi + 0x8a8]
push eax
call fcn.00482bb0
mov edx, eax
add esp, 4
mov dword [ebp - 0x10], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x49832c
cmp cl, 0xd
je 0x49832c
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0xc], 4
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
test ecx, ecx
jne 0x498285
mov eax, dword [edi + 0x1c8]
mov eax, dword [eax + 0x44]
test al, 3
je 0x498195
mov al, byte [edx]
mov edi, edx
test al, al
je 0x497fb0
cmp al, 0x20
je 0x497fa8
cmp al, 9
jne 0x497fb0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x497fa0
push 5
push str.HTTP_
push edi
call fcn.0051a1a0
add esp, 0xc
test eax, eax
jne 0x49805d
movsx ecx, byte [edi + 5]
mov eax, ecx
sub eax, 0x31
je 0x4980a5
sub eax, 1
je 0x497fe5
sub eax, 1
jne 0x498712
mov al, byte [edi + 6]
cmp al, 0x20
je 0x497ff0
cmp al, 9
jne 0x49805d
lea edx, [ecx - 0x30]
mov cl, byte [edi + 7]
mov al, cl
lea edx, [edx + edx*4]
add edx, edx
sub al, 0x30
mov dword [ebp - 0xc], edx
cmp al, 9
ja 0x49805d
mov al, byte [edi + 8]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x49805d
mov al, byte [edi + 9]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0x49805d
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 ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [ebx + 0x50], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x49813c
cmp al, 9
je 0x49813c
cmp al, 0xa
jl 0x49805d
cmp al, 0xd
jle 0x49813c
lea eax, [esi + 0x8a8]
push eax
call fcn.00482ba0
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.00482bb0
add esp, 4
push eax
push esi
call fcn.00497920
add esp, 0xc
cmp eax, 1
jne 0x498797
mov edi, dword [ebp - 8]
mov dword [ebx + 0x50], 0xc8
mov byte [edi + 0x314], 0xa
jmp 0x49826c
cmp byte [edi + 6], 0x2e
jne 0x49877d
mov al, byte [edi + 7]
cmp al, 0x30
je 0x4980be
cmp al, 0x31
jne 0x49877d
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x4980cf
cmp cl, 9
jne 0x49877d
mov cl, byte [edi + 9]
movsx edx, al
mov al, cl
sub edx, 0x26
sub al, 0x30
mov dword [ebp - 0xc], edx
cmp al, 9
ja 0x49877d
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0x49877d
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x49877d
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 ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [ebx + 0x50], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x49813c
cmp al, 9
je 0x49813c
sub al, 0xa
cmp al, 3
ja 0x49877d
cmp ecx, 0x64
jl 0x498763
mov eax, edx
sub eax, 0xa
je 0x498155
sub eax, 1
jne 0x49872c
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], dl
cmp dword [ebx + 0x6c], 3
jne 0x498177
cmp dl, 0x14
je 0x498177
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.0048ca40
add esp, 8
cmp byte [edi + 0x314], 0x14
jae 0x49826c
mov eax, dword [edi + 0x2e8]
mov dword [eax], 0xffffffff
jmp 0x49826c
test eax, 0x40000
je 0x498797
mov al, byte [edx]
mov edi, edx
test al, al
je 0x4981b8
cmp al, 0x20
je 0x4981b0
cmp al, 9
jne 0x4981b8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4981a8
push 5
push str.RTSP_
push edi
call fcn.0051a1a0
add esp, 0xc
test eax, eax
jne 0x498797
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0x4987b1
cmp byte [edi + 6], 0x2e
jne 0x4987b1
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0x4987b1
mov al, byte [edi + 8]
cmp al, 0x20
je 0x498203
cmp al, 9
jne 0x4987b1
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x4987b1
mov dh, byte [edi + 0xa]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x4987b1
mov dl, byte [edi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x4987b1
movsx eax, cl
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 [ebx + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x498262
cmp al, 9
je 0x498262
sub al, 0xa
cmp al, 3
ja 0x4987b1
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], 0xb
push edi
push esi
call fcn.00497440
add esp, 8
test eax, eax
jne 0x4986e8
mov dword [ebp - 0xc], 0xc
push esi
call fcn.00498fe0
add esp, 4
test eax, eax
jne 0x4986e8
push dword [ebp - 0x10]
push edi
push esi
call fcn.00495c90
add esp, 0xc
test eax, eax
jne 0x4986e8
mov eax, dword [ebx + 0x50]
sub eax, 0x64
cmp eax, 0x64
jae 0x4982ba
or dword [ebp - 0xc], 0x20
lea eax, [esi + 0x8a8]
push eax
call fcn.00482ba0
push eax
push dword [ebp - 0x10]
push 1
push esi
call fcn.0048c8e0
lea eax, [esi + 0x8a8]
push eax
call fcn.00482ba0
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push esi
call fcn.0048d0a0
add esp, 0x28
test eax, eax
jne 0x4986e8
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.00482ba0
add esp, 4
push eax
push esi
call fcn.00494800
add esp, 0xc
test eax, eax
jne 0x4986e8
lea eax, [esi + 0x8a8]
push eax
call fcn.00482bc0
add esp, 4
jmp 0x4986bc
mov ecx, dword [ebx + 0x50]
xor dl, dl
mov byte [ebp - 1], dl
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x4983cc
sub ecx, 0x64
je 0x49839c
sub ecx, 1
je 0x49835d
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jmp 0x498437
cmp byte [edi + 0x314], 0xb
jne 0x4987a3
cmp dword [ebx + 0x6c], 2
jne 0x498391
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.0048ca40
mov dl, 1
mov dword [ebx + 0x6c], 3
add esp, 8
mov dword [ebx + 0x44], 0
mov byte [ebp - 1], dl
mov byte [ebx + 0xb3], dl
jmp 0x498437
cmp dword [ebx + 0x68], 0
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jle 0x498437
or dword [ebx + 0x54], 2
push 0
push esi
mov dword [ebx + 0x68], 0
call fcn.0047d000
add esp, 8
jmp 0x498437
cmp dword [ebx + 0x6c], 2
jne 0x4983dd
push dword [esi + 0x7c]
call fcn.0047d140
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xb3], 0
cmp eax, 0xffffffff
jne 0x498437
cmp byte [ebx + 0xba], 0
jne 0x498437
cmp byte [edi + 0x1ae], 0
jne 0x498437
cmp byte [edi + 0x314], 0xb
jne 0x498437
mov eax, dword [edi + 0x1c8]
test dword [eax + 0x44], 0x40000
jne 0x498437
cmp byte [esi + 0xd8a], 5
je 0x498437
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.0048ca40
push 2
push edi
call fcn.0048dec0
add esp, 0x10
cmp byte [ebx + 0xb3], 0
jne 0x498451
push esi
call fcn.00497370
add esp, 4
test eax, eax
jne 0x4986e8
cmp byte [edi + 0x1ae], 0
je 0x498497
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x498472
cmp dword [edi + 0x200], 2
je 0x498482
jmp 0x498497
cmp eax, 0x197
jne 0x498497
cmp dword [edi + 0x204], 2
jne 0x498497
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.0048ca40
add esp, 8
mov byte [esi + 0xd91], 1
mov eax, dword [ebx + 0x50]
sub eax, 0x64
cmp eax, 0x64
lea eax, [esi + 0x8a8]
push eax
sbb edi, edi
and edi, 0x20
add edi, 4
call fcn.00482ba0
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [esi + 0x8a8]
push eax
push ecx
call fcn.00482bb0
add esp, 4
push eax
push edi
push esi
call fcn.0048d0a0
add esp, 0x10
test eax, eax
jne 0x4986e8
push eax
push dword [ebp - 0x10]
push esi
call fcn.00494800
add esp, 0xc
test eax, eax
jne 0x4986e8
mov edi, dword [ebx + 0x50]
push esi
call fcn.004988e0
add esp, 4
test al, al
jne 0x498810
lea eax, [edi - 0x64]
cmp eax, 0x63
ja 0x498516
mov eax, dword [esi + 0xc0]
jmp 0x498518
xor eax, eax
push esi
mov dword [esi + 0xc8], eax
call fcn.00494cf0
add esp, 4
test eax, eax
jne 0x4986e8
cmp dword [ebx + 0x50], 0x12c
mov edi, dword [ebp - 8]
jl 0x498696
cmp byte [edi + 0x1b8], al
jne case.default.0x498574
cmp byte [edi + 0x1ae], al
jne case.default.0x498574
cmp byte [esi + 0xd9f], al
jne 0x49867b
movzx eax, byte [esi + 0xd8a]
dec eax
cmp eax, 3
ja case.default.0x498574
jmp dword [eax*4 + 0x4988c8]
push 0
push esi
call fcn.0047d000
add esp, 8
cmp byte [ebx + 0xb7], 0
jne case.default.0x498574
cmp dword [ebx + 0x50], 0x1a1
jne 0x49860d
cmp byte [esi + 0xd93], 0
je 0x49860d
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x4985c3
cmp dword [ebx + 0x68], 1
jne 0x4985c3
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push esi
call fcn.0048ca40
add esp, 8
jmp 0x4985e8
push str.Got_HTTP_failure_417_while_sending_data
push esi
call fcn.0048ca40
push 2
push edi
call fcn.0048dec0
push edi
push esi
call fcn.00497cf0
add esp, 0x18
test eax, eax
jne 0x4986e8
push dword [esi + 0xcdc]
mov byte [esi + 0xd94], 1
call dword [0x5a9358]
push ebx
push esi
mov dword [esi + 0x110], eax
call fcn.00499ff0
add esp, 0xc
jmp case.default.0x498574
cmp byte [esi + 0x6bb], 0
je 0x498637
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.0048ca40
add esp, 8
cmp dword [ebx + 0x68], 0
jle case.default.0x498574
or dword [ebx + 0x54], 2
mov dword [ebx + 0x68], 0
jmp case.default.0x498574
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.0048ca40
push 2
push edi
call fcn.0048dec0
push ebx
push esi
call fcn.00499ff0
add esp, 0x18
test eax, eax
jne 0x4986e8
mov byte [ebx + 0xb7], 1
cmp byte [esi + 0xd93], al
je case.default.0x498574
mov dword [ebx + 0x68], 3
cmp byte [esi + 0xd9f], 0
je 0x498696
cmp dword [edi + 0x1e4], 0xffffffff
je 0x498696
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.0048ca40
add esp, 8
or dword [ebx + 0x54], 2
cmp byte [ebx + 0xb3], 0
je 0x4987bd
lea eax, [esi + 0x8a8]
push eax
call fcn.00482bc0
add esp, 4
cmp byte [ebp - 1], 0
jne 0x4988bc
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x497ec8
mov al, byte [ebp + 0xb]
cmp byte [ebx + 0xb3], 0
jne 0x4986e6
test al, al
jne 0x4986e6
add esi, 0x8a8
push esi
call fcn.00482b40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push edi
call fcn.0048dec0
add esp, 8
cmp byte [esi + 0x6dc], 0
je 0x4988ae
mov byte [ebx + 0xb3], 0
mov al, 1
jmp 0x4986ca
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.0048c980
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 - 0xc]
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 esi
call fcn.0048c980
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 esi
call fcn.0048c980
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 esi
call fcn.0048c980
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0xb3], 0
jmp 0x4986c7
push str.unexpected_101_response_code
push esi
call fcn.0048c980
add esp, 8
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x147], 0
je 0x4987cd
mov byte [ebx + 0xb5], 1
cmp dword [ebx + 8], 0
jne 0x4987e0
cmp dword [ebx + 0xc], 0
jne 0x4987e0
mov byte [ebx + 0xb5], 1
lea eax, [esi + 0x8a8]
push eax
call fcn.00482ba0
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.00482bb0
add esp, 4
push eax
push 1
push esi
call fcn.0048c8e0
add esp, 0x10
jmp 0x4986c7
push edi
push str.The_requested_URL_returned_error:__d
push esi
call fcn.0048c980
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
lea eax, [esi + 0x8a8]
push dword [ebp + 0xc]
push eax
call fcn.00482b30
add esp, 0xc
test eax, eax
jne 0x4986e8
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
add dword [ecx], eax
cmp dword [ebx + 0x44], 0
jne 0x4986c7
lea eax, [esi + 0x8a8]
push eax
call fcn.00482ba0
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.00482bb0
add esp, 4
push eax
push edi
push esi
call fcn.004979e0
add esp, 0x10
cmp eax, 2
jne 0x4986c7
push eax
push edi
mov byte [ebx + 0xb3], 0
call fcn.0048dec0
add esp, 8
cmp byte [esi + 0x6dc], 0
je 0x4988ae
mov al, 1
jmp 0x4986ca
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.0048c980
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret