Function at 0x4942c0
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.004e9490
add esp, 0xc
test eax, eax
je 0x494c4b
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.0047ef50
add esp, 0xc
test eax, eax
jne 0x494b08
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 0x494367
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efc0
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efd0
add esp, 4
push eax
push edi
push esi
call fcn.00493e00
add esp, 0x10
cmp eax, 2
je 0x494b0f
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efd0
mov edx, eax
add esp, 4
mov dword [ebp - 0x10], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x49474c
cmp cl, 0xd
je 0x49474c
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0xc], 4
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
test ecx, ecx
jne 0x4946a5
mov eax, dword [edi + 0x1c8]
mov eax, dword [eax + 0x44]
test al, 3
je 0x4945b5
mov al, byte [edx]
mov edi, edx
test al, al
je 0x4943d0
cmp al, 0x20
je 0x4943c8
cmp al, 9
jne 0x4943d0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4943c0
push 5
push str.HTTP_
push edi
call fcn.005210b0
add esp, 0xc
test eax, eax
jne 0x49447d
movsx ecx, byte [edi + 5]
mov eax, ecx
sub eax, 0x31
je 0x4944c5
sub eax, 1
je 0x494405
sub eax, 1
jne 0x494b32
mov al, byte [edi + 6]
cmp al, 0x20
je 0x494410
cmp al, 9
jne 0x49447d
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 0x49447d
mov al, byte [edi + 8]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x49447d
mov al, byte [edi + 9]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0x49447d
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 0x49455c
cmp al, 9
je 0x49455c
cmp al, 0xa
jl 0x49447d
cmp al, 0xd
jle 0x49455c
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efc0
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efd0
add esp, 4
push eax
push esi
call fcn.00493d40
add esp, 0xc
cmp eax, 1
jne 0x494bb7
mov edi, dword [ebp - 8]
mov dword [ebx + 0x50], 0xc8
mov byte [edi + 0x314], 0xa
jmp 0x49468c
cmp byte [edi + 6], 0x2e
jne 0x494b9d
mov al, byte [edi + 7]
cmp al, 0x30
je 0x4944de
cmp al, 0x31
jne 0x494b9d
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x4944ef
cmp cl, 9
jne 0x494b9d
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 0x494b9d
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0x494b9d
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x494b9d
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 0x49455c
cmp al, 9
je 0x49455c
sub al, 0xa
cmp al, 3
ja 0x494b9d
cmp ecx, 0x64
jl 0x494b83
mov eax, edx
sub eax, 0xa
je 0x494575
sub eax, 1
jne 0x494b4c
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], dl
cmp dword [ebx + 0x6c], 3
jne 0x494597
cmp dl, 0x14
je 0x494597
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.00488e60
add esp, 8
cmp byte [edi + 0x314], 0x14
jae 0x49468c
mov eax, dword [edi + 0x2e8]
mov dword [eax], 0xffffffff
jmp 0x49468c
test eax, 0x40000
je 0x494bb7
mov al, byte [edx]
mov edi, edx
test al, al
je 0x4945d8
cmp al, 0x20
je 0x4945d0
cmp al, 9
jne 0x4945d8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4945c8
push 5
push str.RTSP_
push edi
call fcn.005210b0
add esp, 0xc
test eax, eax
jne 0x494bb7
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0x494bd1
cmp byte [edi + 6], 0x2e
jne 0x494bd1
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0x494bd1
mov al, byte [edi + 8]
cmp al, 0x20
je 0x494623
cmp al, 9
jne 0x494bd1
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x494bd1
mov dh, byte [edi + 0xa]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x494bd1
mov dl, byte [edi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x494bd1
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 0x494682
cmp al, 9
je 0x494682
sub al, 0xa
cmp al, 3
ja 0x494bd1
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], 0xb
push edi
push esi
call fcn.00493860
add esp, 8
test eax, eax
jne 0x494b08
mov dword [ebp - 0xc], 0xc
push esi
call fcn.00495400
add esp, 4
test eax, eax
jne 0x494b08
push dword [ebp - 0x10]
push edi
push esi
call fcn.004920b0
add esp, 0xc
test eax, eax
jne 0x494b08
mov eax, dword [ebx + 0x50]
sub eax, 0x64
cmp eax, 0x64
jae 0x4946da
or dword [ebp - 0xc], 0x20
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efc0
push eax
push dword [ebp - 0x10]
push 1
push esi
call fcn.00488d00
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efc0
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push esi
call fcn.004894c0
add esp, 0x28
test eax, eax
jne 0x494b08
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efc0
add esp, 4
push eax
push esi
call fcn.00490c20
add esp, 0xc
test eax, eax
jne 0x494b08
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efe0
add esp, 4
jmp 0x494adc
mov ecx, dword [ebx + 0x50]
xor dl, dl
mov byte [ebp - 1], dl
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x4947ec
sub ecx, 0x64
je 0x4947bc
sub ecx, 1
je 0x49477d
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jmp 0x494857
cmp byte [edi + 0x314], 0xb
jne 0x494bc3
cmp dword [ebx + 0x6c], 2
jne 0x4947b1
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.00488e60
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 0x494857
cmp dword [ebx + 0x68], 0
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jle 0x494857
or dword [ebx + 0x54], 2
push 0
push esi
mov dword [ebx + 0x68], 0
call fcn.00479420
add esp, 8
jmp 0x494857
cmp dword [ebx + 0x6c], 2
jne 0x4947fd
push dword [esi + 0x7c]
call fcn.00479560
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xb3], 0
cmp eax, 0xffffffff
jne 0x494857
cmp byte [ebx + 0xba], 0
jne 0x494857
cmp byte [edi + 0x1ae], 0
jne 0x494857
cmp byte [edi + 0x314], 0xb
jne 0x494857
mov eax, dword [edi + 0x1c8]
test dword [eax + 0x44], 0x40000
jne 0x494857
cmp byte [esi + 0xd8a], 5
je 0x494857
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.00488e60
push 2
push edi
call fcn.0048a2e0
add esp, 0x10
cmp byte [ebx + 0xb3], 0
jne 0x494871
push esi
call fcn.00493790
add esp, 4
test eax, eax
jne 0x494b08
cmp byte [edi + 0x1ae], 0
je 0x4948b7
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x494892
cmp dword [edi + 0x200], 2
je 0x4948a2
jmp 0x4948b7
cmp eax, 0x197
jne 0x4948b7
cmp dword [edi + 0x204], 2
jne 0x4948b7
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00488e60
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.0047efc0
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [esi + 0x8a8]
push eax
push ecx
call fcn.0047efd0
add esp, 4
push eax
push edi
push esi
call fcn.004894c0
add esp, 0x10
test eax, eax
jne 0x494b08
push eax
push dword [ebp - 0x10]
push esi
call fcn.00490c20
add esp, 0xc
test eax, eax
jne 0x494b08
mov edi, dword [ebx + 0x50]
push esi
call fcn.00494d00
add esp, 4
test al, al
jne 0x494c30
lea eax, [edi - 0x64]
cmp eax, 0x63
ja 0x494936
mov eax, dword [esi + 0xc0]
jmp 0x494938
xor eax, eax
push esi
mov dword [esi + 0xc8], eax
call fcn.00491110
add esp, 4
test eax, eax
jne 0x494b08
cmp dword [ebx + 0x50], 0x12c
mov edi, dword [ebp - 8]
jl 0x494ab6
cmp byte [edi + 0x1b8], al
jne case.default.0x494994
cmp byte [edi + 0x1ae], al
jne case.default.0x494994
cmp byte [esi + 0xd9f], al
jne 0x494a9b
movzx eax, byte [esi + 0xd8a]
dec eax
cmp eax, 3
ja case.default.0x494994
jmp dword [eax*4 + 0x494ce8]
push 0
push esi
call fcn.00479420
add esp, 8
cmp byte [ebx + 0xb7], 0
jne case.default.0x494994
cmp dword [ebx + 0x50], 0x1a1
jne 0x494a2d
cmp byte [esi + 0xd93], 0
je 0x494a2d
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x4949e3
cmp dword [ebx + 0x68], 1
jne 0x4949e3
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push esi
call fcn.00488e60
add esp, 8
jmp 0x494a08
push str.Got_HTTP_failure_417_while_sending_data
push esi
call fcn.00488e60
push 2
push edi
call fcn.0048a2e0
push edi
push esi
call fcn.00494110
add esp, 0x18
test eax, eax
jne 0x494b08
push dword [esi + 0xcdc]
mov byte [esi + 0xd94], 1
call dword [0x5a0358]
push ebx
push esi
mov dword [esi + 0x110], eax
call fcn.00496410
add esp, 0xc
jmp case.default.0x494994
cmp byte [esi + 0x6bb], 0
je 0x494a57
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.00488e60
add esp, 8
cmp dword [ebx + 0x68], 0
jle case.default.0x494994
or dword [ebx + 0x54], 2
mov dword [ebx + 0x68], 0
jmp case.default.0x494994
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.00488e60
push 2
push edi
call fcn.0048a2e0
push ebx
push esi
call fcn.00496410
add esp, 0x18
test eax, eax
jne 0x494b08
mov byte [ebx + 0xb7], 1
cmp byte [esi + 0xd93], al
je case.default.0x494994
mov dword [ebx + 0x68], 3
cmp byte [esi + 0xd9f], 0
je 0x494ab6
cmp dword [edi + 0x1e4], 0xffffffff
je 0x494ab6
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.00488e60
add esp, 8
or dword [ebx + 0x54], 2
cmp byte [ebx + 0xb3], 0
je 0x494bdd
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efe0
add esp, 4
cmp byte [ebp - 1], 0
jne 0x494cdc
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4942e8
mov al, byte [ebp + 0xb]
cmp byte [ebx + 0xb3], 0
jne 0x494b06
test al, al
jne 0x494b06
add esi, 0x8a8
push esi
call fcn.0047ef60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push edi
call fcn.0048a2e0
add esp, 8
cmp byte [esi + 0x6dc], 0
je 0x494cce
mov byte [ebx + 0xb3], 0
mov al, 1
jmp 0x494aea
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.00488da0
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.00488da0
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.00488da0
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.00488da0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0xb3], 0
jmp 0x494ae7
push str.unexpected_101_response_code
push esi
call fcn.00488da0
add esp, 8
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x147], 0
je 0x494bed
mov byte [ebx + 0xb5], 1
cmp dword [ebx + 8], 0
jne 0x494c00
cmp dword [ebx + 0xc], 0
jne 0x494c00
mov byte [ebx + 0xb5], 1
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efc0
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efd0
add esp, 4
push eax
push 1
push esi
call fcn.00488d00
add esp, 0x10
jmp 0x494ae7
push edi
push str.The_requested_URL_returned_error:__d
push esi
call fcn.00488da0
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.0047ef50
add esp, 0xc
test eax, eax
jne 0x494b08
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
add dword [ecx], eax
cmp dword [ebx + 0x44], 0
jne 0x494ae7
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efc0
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.0047efd0
add esp, 4
push eax
push edi
push esi
call fcn.00493e00
add esp, 0x10
cmp eax, 2
jne 0x494ae7
push eax
push edi
mov byte [ebx + 0xb3], 0
call fcn.0048a2e0
add esp, 8
cmp byte [esi + 0x6dc], 0
je 0x494cce
mov al, 1
jmp 0x494aea
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.00488da0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret