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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 0xd0]
lea ebp, [edi + 0x80]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
lea esp, [esp]
mov ecx, dword [ebx]
push ecx
push 0xa
push esi
call fcn.101b4410
add esp, 0xc
test eax, eax
je 0x10079cf2
mov edx, dword [ebp + 0x50]
sub edx, eax
sub edx, 1
add dword [ebx], edx
add eax, 1
mov dword [ebp + 0x50], eax
sub eax, esi
push eax
lea ecx, [edi + 0x9b4]
push esi
push ecx
call fcn.1004d810
add esp, 0xc
test eax, eax
jne 0x10079f09
cmp dword [ebp + 0x4c], eax
jne 0x100794db
lea eax, [edi + 0x9b4]
push eax
call fcn.100d4520
mov esi, eax
lea eax, [edi + 0x9b4]
push eax
call fcn.100d3700
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x254]
add esp, 8
test dword [edx + 0x44], 0x40000
je 0x100794c5
cmp esi, 5
sbb ecx, ecx
add ecx, 1
cmp esi, 5
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], ecx
jbe 0x100794a8
mov esi, 5
push esi
push eax
push str.RTSP_
call fcn.10051f80
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x100794d2
mov eax, dword [esp + 0x14]
jmp 0x100794d2
push eax
mov ecx, esi
mov eax, edi
call fcn.10078690
add esp, 4
cmp eax, 2
je 0x10079d83
lea eax, [edi + 0x9b4]
push eax
call fcn.100d3700
mov cl, byte [eax]
add esp, 4
cmp cl, 0xa
mov dword [esp + 0x14], eax
je 0x10079930
cmp cl, 0xd
je 0x10079930
mov ecx, dword [ebp + 0x4c]
test ecx, ecx
lea edx, [ecx + 1]
mov dword [esp + 0x24], 2
mov dword [ebp + 0x4c], edx
jne 0x10079870
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x254]
mov ecx, dword [edx + 0x44]
test cl, 3
je 0x1007974b
mov esi, eax
mov al, byte [eax]
test al, al
je 0x10079552
lea esp, [esp]
cmp al, 0x20
je 0x10079548
cmp al, 9
jne 0x10079552
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x10079540
push 5
push str.HTTP_
push esi
call fcn.101b6427
add esp, 0xc
test eax, eax
jne 0x10079602
mov al, byte [esi + 5]
add esi, 5
cmp al, 0x31
je 0x10079643
mov cl, al
sub cl, 0x32
cmp cl, 1
ja 0x10079dd9
mov cl, byte [esi + 1]
cmp cl, 0x20
je 0x10079593
cmp cl, 9
jne 0x10079602
movsx eax, al
sub eax, 0x30
add esi, 2
lea ecx, [eax + eax*4]
mov al, byte [esi]
add ecx, ecx
cmp al, 0x30
jl 0x10079602
cmp al, 0x39
jg 0x10079602
mov bl, byte [esi + 1]
cmp bl, 0x30
jl 0x10079602
cmp bl, 0x39
jg 0x10079602
mov dl, byte [esi + 2]
cmp dl, 0x30
jl 0x10079602
cmp dl, 0x39
jg 0x10079602
movsx eax, al
lea eax, [eax + eax*4]
movsx ebx, bl
lea eax, [ebx + eax*2]
movsx edx, dl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x14d0]
add esi, 3
mov dword [ebp + 0x60], eax
mov al, byte [esi]
cmp al, 0x20
je 0x100796ee
cmp al, 9
je 0x100796ee
cmp al, 0xa
jl 0x10079602
cmp al, 0xd
jle 0x100796ee
lea esi, [edi + 0x9b4]
push esi
call fcn.100d4520
push esi
mov ebx, eax
call fcn.100d3700
push eax
mov ecx, ebx
mov eax, edi
call fcn.10078690
add esp, 0xc
cmp eax, 1
jne 0x10079e6c
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x60], 0xc8
mov byte [edx + 0x3bb], 0xa
jmp 0x10079852
add esi, 1
cmp byte [esi], 0x2e
jne 0x10079df4
mov al, byte [esi + 1]
cmp al, 0x30
je 0x1007965e
cmp al, 0x31
jne 0x10079df4
mov cl, byte [esi + 2]
cmp cl, 0x20
je 0x1007966f
cmp cl, 9
jne 0x10079df4
movsx ecx, al
mov al, byte [esi + 3]
add esi, 3
sub ecx, 0x26
cmp al, 0x30
jl 0x10079df4
cmp al, 0x39
jg 0x10079df4
mov bl, byte [esi + 1]
cmp bl, 0x30
jl 0x10079df4
cmp bl, 0x39
jg 0x10079df4
mov dl, byte [esi + 2]
cmp dl, 0x30
jl 0x10079df4
cmp dl, 0x39
jg 0x10079df4
movsx eax, al
lea eax, [eax + eax*4]
movsx ebx, bl
lea eax, [ebx + eax*2]
movsx edx, dl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x14d0]
add esi, 3
mov dword [ebp + 0x60], eax
mov al, byte [esi]
cmp al, 0x20
je 0x100796ee
cmp al, 9
je 0x100796ee
cmp al, 0xa
jl 0x10079df4
cmp al, 0xd
jg 0x10079df4
cmp dword [ebp + 0x60], 0x64
jl 0x10079e0f
cmp ecx, 0xa
jl 0x10079e2a
cmp ecx, 0xb
jg 0x10079e2a
mov esi, dword [esp + 0x28]
mov byte [esi + 0x3bb], cl
cmp dword [ebp + 0x7c], 3
jne 0x1007972d
cmp cl, 0x14
je 0x1007972d
push str.Lying_server__not_serving_HTTP_2
push edi
call fcn.1005abd0
add esp, 8
cmp byte [esi + 0x3bb], 0x14
jae 0x10079852
mov ecx, dword [esi + 0x390]
mov dword [ecx], 0xffffffff
jmp 0x10079852
test ecx, 0x40000
je 0x10079e6c
mov esi, eax
mov al, byte [eax]
test al, al
je 0x10079772
nop
cmp al, 0x20
je 0x10079768
cmp al, 9
jne 0x10079772
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x10079760
push 5
push str.RTSP_
push esi
call fcn.101b6427
add esp, 0xc
test eax, eax
jne 0x10079e6c
mov al, byte [esi + 5]
add esi, 5
cmp al, 0x30
jl 0x10079e5f
cmp al, 0x39
jg 0x10079e5f
add esi, 1
cmp byte [esi], 0x2e
jne 0x10079e5f
mov al, byte [esi + 1]
cmp al, 0x30
jl 0x10079e5f
cmp al, 0x39
jg 0x10079e5f
mov al, byte [esi + 2]
cmp al, 0x20
je 0x100797ce
cmp al, 9
jne 0x10079e5f
mov al, byte [esi + 3]
add esi, 3
cmp al, 0x30
jl 0x10079e5f
cmp al, 0x39
jg 0x10079e5f
mov dl, byte [esi + 1]
cmp dl, 0x30
jl 0x10079e5f
cmp dl, 0x39
jg 0x10079e5f
mov cl, byte [esi + 2]
cmp cl, 0x30
jl 0x10079e5f
cmp cl, 0x39
jg 0x10079e5f
movsx eax, al
movsx edx, dl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2]
movsx ecx, cl
lea eax, [eax + eax*4]
lea edx, [ecx + eax*2 - 0x14d0]
add esi, 3
mov dword [ebp + 0x60], edx
mov al, byte [esi]
cmp al, 0x20
je 0x10079847
cmp al, 9
je 0x10079847
cmp al, 0xa
jl 0x10079e5f
cmp al, 0xd
jg 0x10079e5f
mov eax, dword [esp + 0x28]
mov byte [eax + 0x3bb], 0xb
mov ecx, dword [esp + 0x28]
push ecx
push edi
call fcn.10078f60
add esp, 8
test eax, eax
jne 0x10079f09
mov dword [esp + 0x24], 6
mov ebx, edi
call fcn.10079130
test eax, eax
jne 0x10079f09
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
push esi
push edx
push edi
call fcn.10078780
add esp, 0xc
test eax, eax
jne 0x10079f09
cmp dword [edi + 0x77c], eax
je 0x100798a7
or dword [esp + 0x24], 1
mov ecx, dword [ebp + 0x60]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x100798c5
or dword [esp + 0x24], 0x10
lea ebx, [edi + 0x9b4]
push ebx
call fcn.100d4520
push eax
push esi
push 1
push edi
call fcn.1005a9f0
push ebx
call fcn.100d4520
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ecx
push edi
call fcn.1005f440
add esp, 0x28
test eax, eax
jne 0x10079f09
push ebx
call fcn.100d4520
add dword [edi + 0xef8], eax
mov esi, 0
push ebx
adc dword [edi + 0xefc], esi
call fcn.100d4520
add dword [edi + 0xa0], eax
push ebx
adc dword [edi + 0xa4], esi
call fcn.1004d790
add esp, 0xc
jmp 0x10079ca8
mov eax, dword [ebp + 0x60]
cmp eax, 0x64
jl 0x10079ac7
cmp eax, 0xc7
jg 0x10079ac7
sub eax, 0x64
je 0x10079a99
sub eax, 1
je 0x10079a82
xor ebx, ebx
mov dword [ebp + 0xc4], 1
mov dword [ebp + 0x4c], ebx
mov esi, dword [esp + 0x28]
cmp dword [ebp + 0xc4], ebx
jne 0x10079985
push edi
call fcn.10079080
add esp, 4
cmp eax, ebx
jne 0x10079f09
cmp dword [esi + 0x1f0], ebx
je 0x100799cb
mov eax, dword [edi + 0xe0]
cmp eax, 0x191
jne 0x100799a3
cmp dword [esi + 0x290], 2
je 0x100799b3
cmp eax, 0x197
jne 0x100799cb
cmp dword [esi + 0x294], 2
jne 0x100799cb
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push edi
call fcn.1005abd0
add esp, 8
mov dword [edi + 0xe9c], 1
mov esi, dword [ebp + 0x60]
xor ecx, ecx
cmp dword [edi + 0x77c], ecx
mov eax, 0x51eb851f
setne cl
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, 1
neg eax
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x10
or ecx, eax
or ecx, 2
lea ebx, [edi + 0x9b4]
push ebx
mov esi, ecx
call fcn.100d4520
add esp, 4
push eax
push ebx
mov dword [esp + 0x18], eax
call fcn.100d3700
add esp, 4
push eax
push esi
push edi
call fcn.1005f440
add esp, 0x10
test eax, eax
jne 0x10079f09
mov eax, dword [esp + 0x10]
cdq
add dword [edi + 0xef8], eax
adc dword [edi + 0xefc], edx
add dword [edi + 0xa0], eax
mov eax, edi
adc dword [edi + 0xa4], edx
call fcn.10075e90
test eax, eax
mov eax, dword [ebp + 0x60]
jne 0x10079e80
cmp eax, 0x64
jl 0x10079b42
cmp eax, 0xc7
jg 0x10079b42
mov eax, dword [edi + 0xa0]
mov ecx, dword [edi + 0xa4]
jmp 0x10079b46
cmp dword [ebp + 0x7c], 2
je 0x10079cc3
xor ebx, ebx
mov dword [ebp + 0xc4], ebx
jmp 0x10079968
xor ebx, ebx
cmp dword [ebp + 0x78], ebx
mov dword [ebp + 0xc4], 1
mov dword [ebp + 0x4c], ebx
jle 0x10079968
or dword [ebp + 0x64], 2
push ebx
push edi
mov dword [ebp + 0x78], ebx
call fcn.1005bdb0
add esp, 8
jmp 0x10079968
mov edx, dword [ebp]
and edx, dword [ebp + 4]
xor ebx, ebx
cmp edx, 0xffffffff
mov dword [ebp + 0xc4], ebx
jne 0x10079968
cmp dword [ebp + 0xd8], ebx
jne 0x10079968
mov esi, dword [esp + 0x28]
cmp dword [esi + 0x1f0], ebx
jne 0x1007996c
cmp byte [esi + 0x3bb], 0xb
jne 0x1007996c
mov eax, dword [esi + 0x254]
test dword [eax + 0x44], 0x40000
jne 0x1007996c
cmp byte [edi + 0xde4], 5
je 0x1007996c
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push edi
call fcn.1005abd0
push 2
push esi
call fcn.10060420
add esp, 0x10
jmp 0x1007996c
xor eax, eax
xor ecx, ecx
push edi
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], ecx
call fcn.100791c0
add esp, 4
test eax, eax
jne 0x10079f09
cmp dword [ebp + 0x60], 0x12c
mov esi, dword [esp + 0x28]
jl 0x10079c92
cmp dword [esi + 0x218], eax
jne 0x10079c6e
cmp dword [esi + 0x1f0], eax
jne 0x10079c6e
cmp dword [edi + 0xed4], eax
jne 0x10079c77
mov al, byte [edi + 0xde4]
sub al, 1
cmp al, 3
ja 0x10079c6e
push 0
push edi
call fcn.1005bdb0
add esp, 8
cmp dword [ebp + 0xcc], 0
jne 0x10079c6e
cmp dword [ebp + 0x60], 0x1a1
jne 0x10079c06
cmp dword [edi + 0xea4], 0
je 0x10079c06
push str.Got_417_while_waiting_for_a_100
push edi
call fcn.1005abd0
mov ecx, dword [edi + 0xde8]
push ecx
mov dword [edi + 0xea8], 1
call dword [0x1027900c]
push ebp
push edi
mov dword [edi + 0x118], eax
call fcn.10082680
add esp, 0x14
jmp 0x10079c6e
cmp dword [edi + 0x76c], 0
je 0x10079c30
push str.HTTP_error_before_end_of_send__keep_sending
push edi
call fcn.1005abd0
add esp, 8
cmp dword [ebp + 0x78], 0
jle 0x10079c6e
or dword [ebp + 0x64], 2
mov dword [ebp + 0x78], 0
jmp 0x10079c6e
push str.HTTP_error_before_end_of_send__stop_sending
push edi
call fcn.1005abd0
push 2
push esi
call fcn.10060420
push ebp
push edi
call fcn.10082680
add esp, 0x18
test eax, eax
jne 0x10079f09
mov dword [ebp + 0xcc], 1
cmp dword [edi + 0xea4], eax
je 0x10079c6e
mov dword [ebp + 0x78], 3
cmp dword [edi + 0xed4], 0
je 0x10079c92
cmp dword [esi + 0x274], 0xffffffff
je 0x10079c92
push str.Keep_sending_data_to_get_tossed_away
push edi
call fcn.1005abd0
add esp, 8
or dword [ebp + 0x64], 2
cmp dword [ebp + 0xc4], 0
je 0x10079e9c
push ebx
call fcn.1004d790
add esp, 4
mov eax, dword [ebp + 0x50]
cmp byte [eax], 0
mov dword [esp + 0x24], eax
je 0x10079f07
mov ebx, dword [esp + 0x2c]
mov esi, eax
jmp 0x10079410
push str.Received_101__Switching_to_HTTP_2
push edi
call fcn.1005abd0
add esp, 8
pop edi
mov eax, 1
pop esi
mov dword [ebp + 0x7c], 3
mov dword [ebp + 0xc4], eax
mov dword [ebp + 0x4c], 0
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [ebx]
push edx
lea eax, [edi + 0x9b4]
push esi
push eax
call fcn.1004d810
add esp, 0xc
test eax, eax
jne 0x10079f09
cmp dword [ebp + 0x4c], eax
jne 0x10079f07
lea esi, [edi + 0x9b4]
push esi
call fcn.100d4520
push esi
mov ebx, eax
call fcn.100d3700
mov esi, dword [esp + 0x30]
push edi
mov ecx, ebx
mov edx, esi
call fcn.10078730
add esp, 0xc
cmp eax, 2
jne 0x10079f07
push eax
push esi
mov dword [ebp + 0xc4], 0
mov dword [ebp + 0x48], eax
call fcn.10060420
add esp, 8
cmp dword [edi + 0x7f4], 0
jne 0x10079f07
push str.Received_HTTP_0.9_when_not_allowed
push edi
call fcn.1005aa90
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
push 2
push eax
call fcn.10060420
add esp, 8
cmp dword [edi + 0x7f4], 0
je 0x10079d68
mov dword [ebp + 0xc4], 0
cmp dword [ebx], 0
je 0x10079dbb
pop edi
pop esi
mov dword [ebp + 0x48], 1
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
mov dword [ebp + 0x48], 2
mov dword [ebx], ecx
pop esi
mov dword [ebp + 0x50], edx
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push str.Unsupported_HTTP_version_in_response
push edi
call fcn.1005aa90
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
push str.Unsupported_HTTP_1_subversion_in_response
push edi
call fcn.1005aa90
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
push str.Unsupported_response_code_in_HTTP_response
push edi
call fcn.1005aa90
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
sub ecx, edx
push ecx
push eax
push str.Unsupported_HTTP_version___u._d__in_response
push edi
call fcn.1005aa90
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x10
ret
pop edi
pop esi
mov dword [ebp + 0xc4], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push eax
push str.The_requested_URL_returned_error:__d
push edi
call fcn.1005aa90
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
add esp, 0x10
ret
cmp dword [edi + 0x16c], 0
mov eax, dword [esp + 0x30]
jne 0x10079ecf
mov ecx, dword [esi + 0x254]
test dword [ecx + 0x44], 0x40000
je 0x10079ed5
cmp dword [edi + 0x6c0], 2
jne 0x10079ed5
cmp dword [ebp + 4], 0xffffffff
jg 0x10079ed5
jl 0x10079ecf
cmp dword [ebp], 0xffffffff
ja 0x10079ed5
mov dword [eax], 1
cmp dword [ebp + 8], 0
jne 0x10079ee9
cmp dword [ebp + 0xc], 0
jne 0x10079ee9
mov dword [eax], 1
jmp 0x10079eee
cmp dword [eax], 0
je 0x10079ef2
and dword [ebp + 0x64], 0xfffffffe
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push edx
push eax
push 1
push edi
call fcn.1005a9f0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret