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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [eax]
lea ebx, [esi + 0x88]
mov eax, dword [ebx + 0x50]
push edi
push edx
push 0xa
push eax
mov dword [ebp - 0x14], edx
mov edi, edx
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], edx
call fcn.00a104e0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x9daefd
nop
mov eax, dword [ebx + 0x50]
sub edi, ecx
mov edx, dword [ebp + 0x10]
dec edi
add eax, edi
lea edi, [esi + 0x8b8]
mov dword [edx], eax
lea eax, [ecx + 1]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x50], eax
sub eax, ecx
push eax
push ecx
push edi
call fcn.009c7fa0
add esp, 0xc
test eax, eax
jne 0x9da58b
cmp dword [ebx + 0x4c], eax
jne 0x9da592
push edi
call fcn.009c8010
add esp, 4
push eax
push edi
call fcn.009c8020
mov edi, dword [ebp + 0xc]
add esp, 4
push eax
push edi
push esi
call fcn.009db690
add esp, 0x10
cmp eax, 2
jne 0x9da595
push eax
push edi
call fcn.009d2460
add esp, 8
cmp byte [esi + 0x6f1], 0
je 0x9daf7a
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0xc2], 0
cmp dword [eax], 0
je 0x9dad8f
mov dword [ebx + 0x48], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x8b8]
push eax
call fcn.009c8020
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
mov al, byte [edx]
cmp al, 0xa
je 0x9da993
cmp al, 0xd
je 0x9da993
mov ecx, dword [ebx + 0x4c]
mov dword [ebp + 8], 2
lea eax, [ecx + 1]
mov dword [ebx + 0x4c], eax
test ecx, ecx
jne 0x9da8d0
mov eax, dword [edi + 0x1e8]
mov eax, dword [eax + 0x44]
test al, 3
je 0x9da7db
mov al, byte [edx]
mov edi, edx
test al, al
je 0x9da600
nop dword [eax]
cmp al, 0x20
je 0x9da5f8
cmp al, 9
jne 0x9da600
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x9da5f0
push 5
push str.HTTP_
push edi
call fcn.00a1ecc0
add esp, 0xc
test eax, eax
jne 0x9da6aa
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x9da6ec
sub al, 0x32
cmp al, 1
ja 0x9dadaa
mov al, byte [edi + 6]
cmp al, 0x20
je 0x9da63a
cmp al, 9
jne 0x9da6aa
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 - 0x10], edx
cmp al, 9
ja 0x9da6aa
mov al, byte [edi + 8]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0x9da6aa
mov al, byte [edi + 9]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x9da6aa
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp + 0xb]
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 + 0x60], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x9da783
cmp al, 9
je 0x9da783
cmp al, 0xa
jl 0x9da6aa
cmp al, 0xd
jle 0x9da783
lea edi, [esi + 0x8b8]
push edi
call fcn.009c8010
add esp, 4
push eax
push edi
call fcn.009c8020
add esp, 4
push eax
push esi
call fcn.009db5d0
add esp, 0xc
cmp eax, 1
jne 0x9dae3b
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x60], 0xc8
mov byte [edi + 0x455], 0xa
jmp 0x9da8b4
cmp byte [edi + 6], 0x2e
jne 0x9dae15
mov al, byte [edi + 7]
cmp al, 0x30
je 0x9da705
cmp al, 0x31
jne 0x9dae15
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x9da716
cmp cl, 9
jne 0x9dae15
mov cl, byte [edi + 9]
movsx edx, al
mov al, cl
sub edx, 0x26
sub al, 0x30
mov dword [ebp - 0x10], edx
cmp al, 9
ja 0x9dae15
mov al, byte [edi + 0xa]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0x9dae15
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x9dae15
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp + 0xb]
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 + 0x60], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x9da783
cmp al, 9
je 0x9da783
sub al, 0xa
cmp al, 3
ja 0x9dae15
cmp ecx, 0x64
jl 0x9dadfb
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x9dadc4
mov edi, dword [ebp + 0xc]
mov al, dl
mov byte [edi + 0x455], dl
cmp dword [ebx + 0x7c], 3
jne 0x9da7c2
cmp dl, 0x14
je 0x9da7c2
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.009d1890
mov al, byte [edi + 0x455]
add esp, 8
cmp al, 0x14
jae 0x9da8b4
mov eax, dword [edi + 0x428]
mov dword [eax], 0xffffffff
jmp 0x9da8b4
test eax, 0x40000
je 0x9dae3b
mov al, byte [edx]
mov edi, edx
test al, al
je 0x9da800
nop
cmp al, 0x20
je 0x9da7f8
cmp al, 9
jne 0x9da800
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x9da7f0
push 5
push str.RTSP_
push edi
call fcn.00a1ecc0
add esp, 0xc
test eax, eax
jne 0x9dae3b
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0x9dae2f
cmp byte [edi + 6], 0x2e
jne 0x9dae2f
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0x9dae2f
mov al, byte [edi + 8]
cmp al, 0x20
je 0x9da84b
cmp al, 9
jne 0x9dae2f
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x9dae2f
mov dl, byte [edi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x9dae2f
mov dh, byte [edi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x9dae2f
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 [ebx + 0x60], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x9da8aa
cmp al, 9
je 0x9da8aa
sub al, 0xa
cmp al, 3
ja 0x9dae2f
mov edi, dword [ebp + 0xc]
mov byte [edi + 0x455], 0xb
push edi
push esi
call fcn.009db230
add esp, 8
test eax, eax
jne 0x9da58b
mov ebx, 6
mov dword [ebp + 8], ebx
jmp 0x9da8d5
mov ebx, 2
push esi
call fcn.009dbfa0
add esp, 4
test eax, eax
jne 0x9da58b
push dword [ebp - 8]
push edi
push esi
call fcn.009d9440
add esp, 0xc
test eax, eax
jne 0x9da58b
mov edi, dword [esi + 0xe8]
or ebx, 1
cmp byte [esi + 0x6d3], al
lea eax, [esi + 0x8b8]
push eax
cmove ebx, dword [ebp + 8]
call fcn.009c8010
push eax
push dword [ebp - 8]
push 1
push esi
call fcn.009d1740
lea eax, [esi + 0x8b8]
push eax
call fcn.009c8010
push eax
push dword [ebp - 8]
lea eax, [edi - 0x64]
mov ecx, ebx
or ecx, 0x10
cmp eax, 0x64
cmovae ecx, ebx
push ecx
push esi
call fcn.009d1910
add esp, 0x28
test eax, eax
jne 0x9da58b
lea ebx, [esi + 0x8b8]
push ebx
call fcn.009c8010
add dword [esi + 0xd98], eax
push ebx
adc dword [esi + 0xd9c], 0
call fcn.009c8010
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x88]
add esp, 8
add dword [esi + 0xa8], eax
adc dword [esi + 0xac], 0
jmp 0x9dad46
mov ecx, dword [ebx + 0x60]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x9da9fd
sub ecx, 0x64
je 0x9da9d1
sub ecx, 1
je 0x9da9bb
mov byte [ebx + 0xc2], 1
mov dword [ebx + 0x4c], 0
jmp 0x9daa59
cmp dword [ebx + 0x7c], 2
je 0x9dae4b
mov byte [ebx + 0xc2], 0
jmp 0x9daa59
cmp dword [ebx + 0x78], 0
mov byte [ebx + 0xc2], 1
mov dword [ebx + 0x4c], 0
jle 0x9daa59
or dword [ebx + 0x64], 2
push 0
push esi
mov dword [ebx + 0x78], 0
call fcn.009c2540
add esp, 8
jmp 0x9daa59
mov eax, dword [ebx]
xor cl, cl
and eax, dword [ebx + 4]
mov byte [ebx + 0xc2], 0
cmp eax, 0xffffffff
jne 0x9daa5f
cmp byte [ebx + 0xc7], cl
jne 0x9daa5f
mov al, byte [edi + 0x1ce]
test al, al
jne 0x9daa5f
cmp byte [edi + 0x455], 0xb
jne 0x9daa5f
mov eax, dword [edi + 0x1e8]
test dword [eax + 0x44], 0x40000
jne 0x9daa5f
cmp byte [esi + 0xd5e], 5
je 0x9daa5f
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.009d1890
push 2
push edi
call fcn.009d2460
add esp, 0x10
mov cl, byte [ebx + 0xc2]
test cl, cl
jne 0x9daa74
push esi
call fcn.009db160
add esp, 4
test eax, eax
jne 0x9da58b
mov cl, byte [edi + 0x1ce]
mov al, cl
test cl, cl
je 0x9daac5
mov edx, dword [esi + 0xe8]
cmp edx, 0x191
jne 0x9daa97
cmp dword [edi + 0x258], 2
je 0x9daaaa
mov al, cl
cmp edx, 0x197
jne 0x9daac5
cmp dword [edi + 0x25c], 2
jne 0x9daac5
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.009d1890
mov byte [esi + 0xd65], 1
add esp, 8
mov al, byte [edi + 0x1ce]
test al, al
je 0x9dab06
mov eax, dword [esi + 0xe8]
cmp eax, 0x191
jne 0x9daae1
cmp dword [edi + 0x2e0], 1
je 0x9daaf1
jmp 0x9dab06
cmp eax, 0x197
jne 0x9dab06
cmp dword [edi + 0x2e4], 1
jne 0x9dab06
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.009d1890
add esp, 8
mov byte [esi + 0xd65], 1
cmp dword [edi + 0x2e0], 3
jne 0x9dab25
cmp dword [esi + 0xe8], 0x191
je 0x9dab25
mov dword [edi + 0x2e0], 4
cmp dword [edi + 0x2e4], 3
jne 0x9dab44
cmp dword [esi + 0xe8], 0x197
je 0x9dab44
mov dword [edi + 0x2e4], 4
mov eax, dword [ebx + 0x60]
sub eax, 0x64
cmp eax, 0x64
sbb edi, edi
xor eax, eax
and edi, 0x10
cmp byte [esi + 0x6d3], al
setne al
add eax, 2
or edi, eax
lea eax, [esi + 0x8b8]
push eax
call fcn.009c8010
add esp, 4
mov dword [ebp - 0x10], eax
push eax
lea eax, [esi + 0x8b8]
push eax
call fcn.009c8020
add esp, 4
push eax
push edi
push esi
call fcn.009d1910
add esp, 0x10
test eax, eax
jne 0x9da58b
mov eax, dword [ebp - 0x10]
cdq
mov edi, eax
mov eax, edx
add dword [esi + 0xd98], edi
push esi
adc dword [esi + 0xd9c], eax
add edi, dword [esi + 0xa8]
mov dword [esi + 0xa8], edi
adc eax, dword [esi + 0xac]
mov dword [ebp - 8], eax
mov dword [esi + 0xac], eax
call fcn.009dbb40
add esp, 4
test al, al
mov eax, dword [ebx + 0x60]
jne 0x9daee2
add eax, 0xffffff9c
cmp eax, 0x63
ja 0x9dabe7
mov eax, dword [ebp - 8]
jmp 0x9dabf5
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
push esi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], eax
call fcn.009d8470
add esp, 4
test eax, eax
jne 0x9da58b
cmp dword [ebx + 0x60], 0x12c
mov edi, dword [ebp + 0xc]
jl 0x9dad39
cmp byte [edi + 0x1d8], al
jne 0x9dad15
cmp byte [edi + 0x1ce], al
jne 0x9dad15
cmp byte [esi + 0xd73], al
jne 0x9dad1e
mov al, byte [esi + 0xd5e]
dec al
cmp al, 3
ja 0x9dad15
push 0
push esi
call fcn.009c2540
add esp, 8
cmp byte [ebx + 0xc4], 0
jne 0x9dad15
cmp dword [ebx + 0x60], 0x1a1
jne 0x9dacb0
cmp byte [esi + 0xd67], 0
je 0x9dacb0
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.009d1890
push dword [esi + 0xcbc]
mov byte [esi + 0xd68], 1
call dword [0xa6d0bc]
push ebx
push esi
mov dword [esi + 0x120], eax
call fcn.009dcf70
add esp, 0x14
jmp 0x9dad15
cmp byte [esi + 0x6cf], 0
je 0x9dacda
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.009d1890
add esp, 8
cmp dword [ebx + 0x78], 0
jle 0x9dad15
or dword [ebx + 0x64], 2
mov dword [ebx + 0x78], 0
jmp 0x9dad15
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.009d1890
push 2
push edi
call fcn.009d2460
push ebx
push esi
call fcn.009dcf70
add esp, 0x18
test eax, eax
jne 0x9da58b
mov byte [ebx + 0xc4], 1
cmp byte [esi + 0xd67], al
je 0x9dad15
mov dword [ebx + 0x78], 3
cmp byte [esi + 0xd73], 0
je 0x9dad39
cmp dword [edi + 0x204], 0xffffffff
je 0x9dad39
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.009d1890
add esp, 8
or dword [ebx + 0x64], 2
cmp byte [ebx + 0xc2], 0
je 0x9dae7a
lea eax, [esi + 0x8b8]
push eax
call fcn.009c8030
mov eax, dword [ebx + 0x50]
add esp, 4
cmp byte [eax], 0
je 0x9da589
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 - 8], eax
mov dword [ebp - 0x10], eax
call fcn.00a104e0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x9daf00
mov edi, dword [ebp - 8]
jmp 0x9da500
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x48], 2
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
pop edi
mov dword [ebx + 0x50], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.009d17d0
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 esi
call fcn.009d17d0
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.009d17d0
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.009d17d0
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
pop esi
mov byte [ebx + 0xc2], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.009d1890
add esp, 8
mov dword [ebx + 0x7c], 3
mov byte [ebx + 0xc2], 1
mov eax, 1
mov dword [ebx + 0x4c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x154], 0
mov ecx, dword [ebp + 0x14]
jne 0x9daeab
mov eax, dword [edi + 0x1e8]
test dword [eax + 0x44], 0x40000
je 0x9daeae
cmp dword [esi + 0x664], 2
jne 0x9daeae
cmp dword [ebx + 4], 0xffffffff
jg 0x9daeae
jl 0x9daeab
cmp dword [ebx], 0xffffffff
ja 0x9daeae
mov byte [ecx], 1
cmp dword [ebx + 8], 0
jne 0x9daebf
cmp dword [ebx + 0xc], 0
jne 0x9daebf
mov byte [ecx], 1
jmp 0x9daec4
cmp byte [ecx], 0
je 0x9daec8
and dword [ebx + 0x64], 0xfffffffe
push dword [ebp - 0x10]
push dword [ebp + 8]
push 1
push esi
call fcn.009d1740
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 esi
call fcn.009d17d0
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 - 0x10]
lea eax, [esi + 0x8b8]
push dword [ebp + 8]
push eax
call fcn.009c7fa0
add esp, 0xc
test eax, eax
jne 0x9da58b
cmp dword [ebx + 0x4c], eax
jne 0x9da589
lea eax, [esi + 0x8b8]
push eax
call fcn.009c8010
add esp, 4
push eax
lea eax, [esi + 0x8b8]
push eax
call fcn.009c8020
add esp, 4
push eax
push edi
push esi
call fcn.009db690
add esp, 0x10
cmp eax, 2
jne 0x9da589
push eax
push edi
mov byte [ebx + 0xc2], 0
mov dword [ebx + 0x48], eax
call fcn.009d2460
add esp, 8
cmp byte [esi + 0x6f1], 0
jne 0x9da589
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.009d17d0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret