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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, dword [eax]
lea esi, [ebx + 0x80]
mov eax, dword [esi + 0x50]
push edi
push edx
lea ecx, [ebx + 0x8a4]
mov dword [ebp - 0x1c], edx
push 0xa
push eax
mov dword [ebp - 0x20], eax
mov edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
call fcn.004df0a0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4b0755
mov eax, dword [esi + 0x50]
sub edi, ecx
mov edx, dword [ebp + 0x10]
dec eax
add eax, edi
lea edi, [ebx + 0x8a4]
mov dword [edx], eax
lea eax, [ecx + 1]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x50], eax
sub eax, ecx
push eax
push ecx
push edi
call fcn.0049f3c0
add esp, 0xc
test eax, eax
jne 0x4afe82
cmp dword [esi + 0x4c], eax
jne 0x4afe89
push edi
call fcn.0049f430
add esp, 4
push eax
push edi
call fcn.0049f440
mov edi, dword [ebp + 0xc]
add esp, 4
push eax
push edi
push ebx
call fcn.004b0ee0
add esp, 0x10
cmp eax, 2
jne 0x4afe8c
push eax
push edi
call fcn.004a7df0
add esp, 8
cmp byte [ebx + 0x6e9], 0
je 0x4b07d2
mov eax, dword [ebp + 0x10]
mov byte [esi + 0xc2], 0
cmp dword [eax], 0
je 0x4b05e7
mov dword [esi + 0x48], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0x8a4]
push eax
call fcn.0049f440
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
mov al, byte [edx]
cmp al, 0xa
je 0x4b0277
cmp al, 0xd
je 0x4b0277
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 8], 2
lea eax, [ecx + 1]
mov dword [esi + 0x4c], eax
test ecx, ecx
jne 0x4b01be
mov eax, dword [edi + 0x1e0]
mov eax, dword [eax + 0x44]
test al, 3
je 0x4b00ce
mov al, byte [edx]
mov edi, edx
test al, al
je 0x4afef3
cmp al, 0x20
je 0x4afeeb
cmp al, 9
jne 0x4afef3
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4afee3
push 5
push str.HTTP_
push edi
call fcn.004ef5c0
add esp, 0xc
test eax, eax
jne 0x4aff9d
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x4affdf
sub al, 0x32
cmp al, 1
ja 0x4b0602
mov al, byte [edi + 6]
cmp al, 0x20
je 0x4aff2d
cmp al, 9
jne 0x4aff9d
movsx eax, cl
mov cl, byte [edi + 7]
sub eax, 0x30
lea edx, [eax + eax*4]
mov al, cl
add edx, edx
sub al, 0x30
mov dword [ebp - 8], edx
cmp al, 9
ja 0x4aff9d
mov al, byte [edi + 8]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x4aff9d
mov al, byte [edi + 9]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0x4aff9d
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 [esi + 0x60], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x4b0076
cmp al, 9
je 0x4b0076
cmp al, 0xa
jl 0x4aff9d
cmp al, 0xd
jle 0x4b0076
lea edi, [ebx + 0x8a4]
push edi
call fcn.0049f430
add esp, 4
push eax
push edi
call fcn.0049f440
add esp, 4
push eax
push ebx
call fcn.004b0e20
add esp, 0xc
cmp eax, 1
jne 0x4b0693
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x60], 0xc8
mov byte [edi + 0x330], 0xa
jmp 0x4b01a5
cmp byte [edi + 6], 0x2e
jne 0x4b066d
mov al, byte [edi + 7]
cmp al, 0x30
je 0x4afff8
cmp al, 0x31
jne 0x4b066d
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x4b0009
cmp cl, 9
jne 0x4b066d
mov cl, byte [edi + 9]
movsx edx, al
mov al, cl
sub edx, 0x26
sub al, 0x30
mov dword [ebp - 8], edx
cmp al, 9
ja 0x4b066d
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0x4b066d
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x4b066d
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 [esi + 0x60], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x4b0076
cmp al, 9
je 0x4b0076
sub al, 0xa
cmp al, 3
ja 0x4b066d
cmp ecx, 0x64
jl 0x4b0653
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x4b061c
mov edi, dword [ebp + 0xc]
mov al, dl
mov byte [edi + 0x330], dl
cmp dword [esi + 0x7c], 3
jne 0x4b00b5
cmp dl, 0x14
je 0x4b00b5
push str.Lying_server__not_serving_HTTP_2
push ebx
call fcn.004a71d0
mov al, byte [edi + 0x330]
add esp, 8
cmp al, 0x14
jae 0x4b01a5
mov eax, dword [edi + 0x300]
mov dword [eax], 0xffffffff
jmp 0x4b01a5
test eax, 0x40000
je 0x4b0693
mov al, byte [edx]
mov edi, edx
test al, al
je 0x4b00f1
cmp al, 0x20
je 0x4b00e9
cmp al, 9
jne 0x4b00f1
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4b00e1
push 5
push str.RTSP_
push edi
call fcn.004ef5c0
add esp, 0xc
test eax, eax
jne 0x4b0693
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0x4b0687
cmp byte [edi + 6], 0x2e
jne 0x4b0687
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0x4b0687
mov al, byte [edi + 8]
cmp al, 0x20
je 0x4b013c
cmp al, 9
jne 0x4b0687
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x4b0687
mov dl, byte [edi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x4b0687
mov dh, byte [edi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x4b0687
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [esi + 0x60], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x4b019b
cmp al, 9
je 0x4b019b
sub al, 0xa
cmp al, 3
ja 0x4b0687
mov edi, dword [ebp + 0xc]
mov byte [edi + 0x330], 0xb
push edi
push ebx
call fcn.004b0a80
add esp, 8
test eax, eax
jne 0x4afe82
mov dword [ebp - 8], 6
push ebx
call fcn.004b1750
add esp, 4
test eax, eax
jne 0x4afe82
push dword [ebp - 0xc]
push edi
push ebx
call fcn.004aee50
add esp, 0xc
test eax, eax
jne 0x4afe82
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 8]
push dword [ebp - 0x10]
mov edi, dword [esi + 0x60]
or ebx, 1
cmp byte [eax + 0x6cb], 0
cmove ebx, dword [ebp - 8]
call fcn.0049f430
push eax
push dword [ebp - 0xc]
push 1
push dword [ebp + 8]
call fcn.004a7080
push dword [ebp - 0x10]
call fcn.0049f430
push eax
push dword [ebp - 0xc]
mov ecx, ebx
lea eax, [edi - 0x64]
or ecx, 0x10
cmp eax, 0x64
cmovae ecx, ebx
mov ebx, dword [ebp + 8]
push ecx
push ebx
call fcn.004a7250
add esp, 0x28
test eax, eax
jne 0x4afe82
lea edi, [ebx + 0x8a4]
push edi
call fcn.0049f430
add dword [ebx + 0xda8], eax
push edi
adc dword [ebx + 0xdac], 0
call fcn.0049f430
mov edi, dword [ebp + 0xc]
add esp, 8
add dword [ebx + 0xa0], eax
adc dword [ebx + 0xa4], 0
jmp 0x4b059e
mov ecx, dword [esi + 0x60]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x4b02e1
sub ecx, 0x64
je 0x4b02b5
sub ecx, 1
je 0x4b029f
mov byte [esi + 0xc2], 1
mov dword [esi + 0x4c], 0
jmp 0x4b033b
cmp dword [esi + 0x7c], 2
je 0x4b06a3
mov byte [esi + 0xc2], 0
jmp 0x4b033b
cmp dword [esi + 0x78], 0
mov byte [esi + 0xc2], 1
mov dword [esi + 0x4c], 0
jle 0x4b033b
or dword [esi + 0x64], 2
push 0
push ebx
mov dword [esi + 0x78], 0
call fcn.00499a70
add esp, 8
jmp 0x4b033b
mov eax, dword [esi]
xor cl, cl
and eax, dword [esi + 4]
mov byte [esi + 0xc2], 0
cmp eax, 0xffffffff
jne 0x4b0341
cmp byte [esi + 0xc7], cl
jne 0x4b0341
cmp byte [edi + 0x1c6], cl
jne 0x4b0341
cmp byte [edi + 0x330], 0xb
jne 0x4b0341
mov eax, dword [edi + 0x1e0]
test dword [eax + 0x44], 0x40000
jne 0x4b0341
cmp byte [ebx + 0xccc], 5
je 0x4b0341
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push ebx
call fcn.004a71d0
push 2
push edi
call fcn.004a7df0
add esp, 0x10
mov cl, byte [esi + 0xc2]
test cl, cl
jne 0x4b0356
push ebx
call fcn.004b09b0
add esp, 4
test eax, eax
jne 0x4afe82
cmp byte [edi + 0x1c6], 0
je 0x4b039c
mov eax, dword [ebx + 0xe0]
cmp eax, 0x191
jne 0x4b0377
cmp dword [edi + 0x218], 2
je 0x4b0387
jmp 0x4b039c
cmp eax, 0x197
jne 0x4b039c
cmp dword [edi + 0x21c], 2
jne 0x4b039c
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push ebx
call fcn.004a71d0
add esp, 8
mov byte [ebx + 0xd75], 1
mov eax, dword [esi + 0x60]
sub eax, 0x64
cmp eax, 0x64
sbb edi, edi
xor eax, eax
and edi, 0x10
cmp byte [ebx + 0x6cb], al
setne al
add eax, 2
or edi, eax
lea eax, [ebx + 0x8a4]
push eax
call fcn.0049f430
add esp, 4
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebx + 0x8a4]
push eax
call fcn.0049f440
add esp, 4
push eax
push edi
push ebx
call fcn.004a7250
add esp, 0x10
test eax, eax
jne 0x4afe82
mov eax, dword [ebp - 0xc]
cdq
mov edi, eax
mov eax, edx
add dword [ebx + 0xda8], edi
push ebx
adc dword [ebx + 0xdac], eax
add edi, dword [ebx + 0xa0]
mov dword [ebx + 0xa0], edi
adc eax, dword [ebx + 0xa4]
mov dword [ebp - 0x14], eax
mov dword [ebx + 0xa4], eax
call fcn.004b1320
add esp, 4
test al, al
mov eax, dword [esi + 0x60]
jne 0x4b073a
add eax, 0xffffff9c
cmp eax, 0x63
ja 0x4b043f
mov eax, dword [ebp - 0x14]
jmp 0x4b044d
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push ebx
mov dword [ebx + 0xa8], edi
mov dword [ebx + 0xac], eax
call fcn.004ade80
add esp, 4
test eax, eax
jne 0x4afe82
cmp dword [esi + 0x60], 0x12c
mov edi, dword [ebp + 0xc]
jl 0x4b0591
cmp byte [edi + 0x1d0], al
jne 0x4b056d
cmp byte [edi + 0x1c6], al
jne 0x4b056d
cmp byte [ebx + 0xd83], al
jne 0x4b0576
mov al, byte [ebx + 0xccc]
dec al
cmp al, 3
ja 0x4b056d
push 0
push ebx
call fcn.00499a70
add esp, 8
cmp byte [esi + 0xc4], 0
jne 0x4b056d
cmp dword [esi + 0x60], 0x1a1
jne 0x4b0508
cmp byte [ebx + 0xd77], 0
je 0x4b0508
push str.Got_417_while_waiting_for_a_100
push ebx
call fcn.004a71d0
push dword [ebx + 0xcd0]
mov byte [ebx + 0xd78], 1
call dword [0x52d06c]
push esi
push ebx
mov dword [ebx + 0x118], eax
call fcn.004b2720
add esp, 0x14
jmp 0x4b056d
cmp byte [ebx + 0x6c7], 0
je 0x4b0532
push str.HTTP_error_before_end_of_send__keep_sending
push ebx
call fcn.004a71d0
add esp, 8
cmp dword [esi + 0x78], 0
jle 0x4b056d
or dword [esi + 0x64], 2
mov dword [esi + 0x78], 0
jmp 0x4b056d
push str.HTTP_error_before_end_of_send__stop_sending
push ebx
call fcn.004a71d0
push 2
push edi
call fcn.004a7df0
push esi
push ebx
call fcn.004b2720
add esp, 0x18
test eax, eax
jne 0x4afe82
mov byte [esi + 0xc4], 1
cmp byte [ebx + 0xd77], al
je 0x4b056d
mov dword [esi + 0x78], 3
cmp byte [ebx + 0xd83], 0
je 0x4b0591
cmp dword [edi + 0x1fc], 0xffffffff
je 0x4b0591
push str.Keep_sending_data_to_get_tossed_away
push ebx
call fcn.004a71d0
add esp, 8
or dword [esi + 0x64], 2
cmp byte [esi + 0xc2], 0
je 0x4b06d2
lea eax, [ebx + 0x8a4]
push eax
call fcn.0049f450
mov eax, dword [esi + 0x50]
add esp, 4
cmp byte [eax], 0
je 0x4afe80
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov eax, dword [eax]
push eax
push 0xa
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004df0a0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4b0758
mov edi, dword [ebp - 0x14]
jmp 0x4afdf7
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x48], 2
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
pop edi
mov dword [esi + 0x50], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_version_in_response
push ebx
call fcn.004a7110
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 - 8]
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.004a7110
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.004a7110
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.004a7110
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov byte [esi + 0xc2], 0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101__Switching_to_HTTP_2
push ebx
call fcn.004a71d0
add esp, 8
mov dword [esi + 0x7c], 3
mov byte [esi + 0xc2], 1
mov eax, 1
mov dword [esi + 0x4c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x14c], 0
mov ecx, dword [ebp + 0x14]
jne 0x4b0703
mov eax, dword [edi + 0x1e0]
test dword [eax + 0x44], 0x40000
je 0x4b0706
cmp dword [ebx + 0x65c], 2
jne 0x4b0706
cmp dword [esi + 4], 0xffffffff
jg 0x4b0706
jl 0x4b0703
cmp dword [esi], 0xffffffff
ja 0x4b0706
mov byte [ecx], 1
cmp dword [esi + 8], 0
jne 0x4b0717
cmp dword [esi + 0xc], 0
jne 0x4b0717
mov byte [ecx], 1
jmp 0x4b071c
cmp byte [ecx], 0
je 0x4b0720
and dword [esi + 0x64], 0xfffffffe
push dword [ebp - 0xc]
push dword [ebp - 8]
push 1
push ebx
call fcn.004a7080
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.The_requested_URL_returned_error:__d
push ebx
call fcn.004a7110
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
push dword [ebp - 0xc]
lea eax, [ebx + 0x8a4]
push dword [ebp - 8]
push eax
call fcn.0049f3c0
add esp, 0xc
test eax, eax
jne 0x4afe82
cmp dword [esi + 0x4c], eax
jne 0x4afe80
lea eax, [ebx + 0x8a4]
push eax
call fcn.0049f430
add esp, 4
push eax
lea eax, [ebx + 0x8a4]
push eax
call fcn.0049f440
add esp, 4
push eax
push edi
push ebx
call fcn.004b0ee0
add esp, 0x10
cmp eax, 2
jne 0x4afe80
push eax
push edi
mov byte [esi + 0xc2], 0
mov dword [esi + 0x48], eax
call fcn.004a7df0
add esp, 8
cmp byte [ebx + 0x6e9], 0
jne 0x4afe80
push str.Received_HTTP_0.9_when_not_allowed
push ebx
call fcn.004a7110
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret