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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push ecx
mov edx, dword [esi + 0xd0]
mov edi, ecx
mov eax, edx
mov dword [ebp - 0x10], ecx
push 0xa
push eax
mov dword [ebp - 0x14], edx
mov ebx, edx
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ecx
call fcn.00d72ff0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0xd3d4c1
nop
mov edx, dword [ebp + 0x10]
lea eax, [edi - 1]
sub ebx, ecx
lea edi, [esi + 0x8b0]
add eax, ebx
mov dword [edx], eax
lea eax, [ecx + 1]
mov ecx, dword [ebp + 8]
mov dword [esi + 0xd0], eax
sub eax, ecx
push eax
push ecx
push edi
call fcn.00d29fe0
add esp, 0xc
test eax, eax
jne 0xd3cac3
cmp dword [esi + 0xcc], eax
jne 0xd3caca
push edi
call fcn.00d2a050
add esp, 4
push eax
push edi
call fcn.004b4c80
mov ebx, dword [ebp + 0xc]
add esp, 4
push eax
push ebx
push esi
call fcn.00d3dc60
add esp, 0x10
cmp eax, 2
jne 0xd3cacd
push eax
push ebx
call fcn.00d34740
add esp, 8
cmp byte [esi + 0x6e9], 0
je 0xd3d538
mov eax, dword [ebp + 0x10]
mov byte [esi + 0x142], 0
cmp dword [eax], 0
je 0xd3d337
mov dword [esi + 0xc8], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
push edi
call fcn.004b4c80
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0xd3ceb5
cmp cl, 0xd
je 0xd3ceb5
mov ecx, dword [esi + 0xcc]
mov edi, 2
lea eax, [ecx + 1]
mov dword [esi + 0xcc], eax
test ecx, ecx
jne 0xd3ce09
mov eax, dword [ebx + 0x1e8]
mov eax, dword [eax + 0x44]
test al, 3
je 0xd3cd1c
mov al, byte [edx]
mov edi, edx
test al, al
je 0xd3cb34
cmp al, 0x20
je 0xd3cb2c
cmp al, 9
jne 0xd3cb34
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xd3cb24
push 5
push str.HTTP_
push edi
call fcn.00d83310
add esp, 0xc
test eax, eax
jne 0xd3cbe4
movsx ecx, byte [edi + 5]
mov eax, ecx
sub eax, 0x31
je 0xd3cc26
sub eax, 1
je 0xd3cb69
sub eax, 1
jne 0xd3d358
mov al, byte [edi + 6]
cmp al, 0x20
je 0xd3cb74
cmp al, 9
jne 0xd3cbe4
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 0xd3cbe4
mov al, byte [edi + 8]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0xd3cbe4
mov al, byte [edi + 9]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0xd3cbe4
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 [esi + 0xe0], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0xd3ccc0
cmp al, 9
je 0xd3ccc0
cmp al, 0xa
jl 0xd3cbe4
cmp al, 0xd
jle 0xd3ccc0
lea edi, [esi + 0x8b0]
push edi
call fcn.00d2a050
add esp, 4
push eax
push edi
call fcn.004b4c80
add esp, 4
push eax
push esi
call fcn.00d3dba0
add esp, 0xc
cmp eax, 1
jne 0xd3d3e9
mov dword [esi + 0xe0], 0xc8
mov byte [ebx + 0x455], 0xa
jmp 0xd3cdf4
cmp byte [edi + 6], 0x2e
jne 0xd3d3c3
mov al, byte [edi + 7]
cmp al, 0x30
je 0xd3cc3f
cmp al, 0x31
jne 0xd3d3c3
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0xd3cc50
cmp cl, 9
jne 0xd3d3c3
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 0xd3d3c3
mov al, byte [edi + 0xa]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0xd3d3c3
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0xd3d3c3
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 [esi + 0xe0], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xd3ccc0
cmp al, 9
je 0xd3ccc0
sub al, 0xa
cmp al, 3
ja 0xd3d3c3
cmp ecx, 0x64
jl 0xd3d3a9
mov eax, edx
sub eax, 0xa
je 0xd3ccd9
sub eax, 1
jne 0xd3d372
mov byte [ebx + 0x455], dl
mov al, dl
cmp dword [esi + 0xfc], 3
jne 0xd3cd03
cmp dl, 0x14
je 0xd3cd03
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.00d33a30
mov al, byte [ebx + 0x455]
add esp, 8
cmp al, 0x14
jae 0xd3cdf4
mov eax, dword [ebx + 0x428]
mov dword [eax], 0xffffffff
jmp 0xd3cdf4
test eax, 0x40000
je 0xd3d3e9
mov al, byte [edx]
mov edi, edx
test al, al
je 0xd3cd40
nop
cmp al, 0x20
je 0xd3cd38
cmp al, 9
jne 0xd3cd40
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xd3cd30
push 5
push str.RTSP_
push edi
call fcn.00d83310
add esp, 0xc
test eax, eax
jne 0xd3d3e9
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0xd3d3dd
cmp byte [edi + 6], 0x2e
jne 0xd3d3dd
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0xd3d3dd
mov al, byte [edi + 8]
cmp al, 0x20
je 0xd3cd8b
cmp al, 9
jne 0xd3d3dd
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0xd3d3dd
mov dl, byte [edi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0xd3d3dd
mov dh, byte [edi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0xd3d3dd
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 + 0xe0], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xd3cded
cmp al, 9
je 0xd3cded
sub al, 0xa
cmp al, 3
ja 0xd3d3dd
mov byte [ebx + 0x455], 0xb
push ebx
push esi
call fcn.00d3d800
add esp, 8
test eax, eax
jne 0xd3cac3
lea edi, [eax + 6]
push esi
call fcn.00d3e550
add esp, 4
test eax, eax
jne 0xd3cac3
push dword [ebp - 8]
push ebx
push esi
call fcn.00d3b970
add esp, 0xc
test eax, eax
jne 0xd3cac3
mov ebx, edi
or ebx, 1
cmp byte [esi + 0x6cb], al
lea eax, [esi + 0x8b0]
cmove ebx, edi
mov edi, dword [esi + 0xe0]
push eax
call fcn.00d2a050
push eax
push dword [ebp - 8]
push 1
push esi
call fcn.00d338d0
lea eax, [esi + 0x8b0]
push eax
call fcn.00d2a050
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.00d33b70
add esp, 0x28
test eax, eax
jne 0xd3cac3
push eax
lea eax, [esi + 0x8b0]
push eax
call fcn.00d2a050
add esp, 4
push eax
push esi
call fcn.00d3a710
add esp, 0xc
test eax, eax
jne 0xd3cac3
mov edi, dword [ebp + 0xc]
jmp 0xd3d2eb
mov ecx, dword [esi + 0xe0]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0xd3cf41
sub ecx, 0x64
je 0xd3cf00
sub ecx, 1
je 0xd3cee5
lea edi, [esi + 0x142]
mov dword [esi + 0xcc], 0
mov byte [edi], 1
jmp 0xd3cfb8
cmp dword [esi + 0xfc], 2
je 0xd3d3f9
lea edi, [esi + 0x142]
mov byte [edi], 0
jmp 0xd3cfb8
cmp dword [esi + 0xf8], 0
lea edi, [esi + 0x142]
mov byte [edi], 1
mov dword [esi + 0xcc], 0
jle 0xd3cfb8
or dword [esi + 0xe4], 2
push 0
push esi
mov dword [esi + 0xf8], 0
call fcn.00d24560
add esp, 8
jmp 0xd3cfb8
cmp dword [esi + 0xfc], 2
jne 0xd3cf55
push dword [esi + 0x7c]
call fcn.00d24640
add esp, 4
mov eax, dword [esi + 0x88]
lea edi, [esi + 0x142]
and eax, dword [esi + 0x8c]
mov byte [edi], 0
cmp eax, 0xffffffff
jne 0xd3cfbd
cmp byte [esi + 0x147], 0
jne 0xd3cfbd
cmp byte [ebx + 0x1ce], 0
jne 0xd3cfbd
cmp byte [ebx + 0x455], 0xb
jne 0xd3cfbd
mov eax, dword [ebx + 0x1e8]
test dword [eax + 0x44], 0x40000
jne 0xd3cfbd
cmp byte [esi + 0xd5e], 5
je 0xd3cfbd
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.00d33a30
push 2
push ebx
call fcn.00d34740
add esp, 0x10
cmp byte [edi], 0
jne 0xd3cfce
push esi
call fcn.00d3d730
add esp, 4
test eax, eax
jne 0xd3cac3
mov al, byte [ebx + 0x1ce]
test al, al
je 0xd3d060
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xd3cff4
cmp dword [ebx + 0x258], 2
je 0xd3d004
jmp 0xd3d023
cmp eax, 0x197
jne 0xd3d023
cmp dword [ebx + 0x25c], 2
jne 0xd3d023
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00d33a30
mov byte [esi + 0xd65], 1
add esp, 8
mov al, byte [ebx + 0x1ce]
test al, al
je 0xd3d060
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xd3d03b
cmp dword [ebx + 0x2e0], 1
je 0xd3d04b
jmp 0xd3d060
cmp eax, 0x197
jne 0xd3d060
cmp dword [ebx + 0x2e4], 1
jne 0xd3d060
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00d33a30
add esp, 8
mov byte [esi + 0xd65], 1
cmp dword [ebx + 0x2e0], 3
jne 0xd3d07f
cmp dword [esi + 0xe0], 0x191
je 0xd3d07f
mov dword [ebx + 0x2e0], 4
cmp dword [ebx + 0x2e4], 3
jne 0xd3d09e
cmp dword [esi + 0xe0], 0x197
je 0xd3d09e
mov dword [ebx + 0x2e4], 4
mov eax, dword [esi + 0xe0]
xor ebx, ebx
cmp byte [esi + 0x6cb], bl
setne bl
sub eax, 0x64
add ebx, 2
cmp eax, 0x64
sbb eax, eax
and eax, 0x10
or ebx, eax
lea eax, [esi + 0x8b0]
push eax
call fcn.00d2a050
add esp, 4
mov edi, eax
lea eax, [esi + 0x8b0]
mov dword [ebp - 0xc], edi
push edi
push eax
call fcn.004b4c80
add esp, 4
push eax
push ebx
push esi
call fcn.00d33b70
add esp, 0x10
test eax, eax
jne 0xd3cac3
push eax
push edi
push esi
call fcn.00d3a710
add esp, 0xc
test eax, eax
jne 0xd3cac3
mov edi, dword [esi + 0xe0]
push esi
call fcn.00d3e110
add esp, 4
test al, al
jne 0xd3d4a6
lea eax, [edi - 0x64]
cmp eax, 0x63
ja 0xd3d130
mov eax, dword [esi + 0xc0]
jmp 0xd3d132
xor eax, eax
push esi
mov dword [esi + 0xc4], eax
call fcn.00d3a950
add esp, 4
test eax, eax
jne 0xd3cac3
cmp dword [esi + 0xe0], 0x12c
mov edi, dword [ebp + 0xc]
jl 0xd3d2de
cmp byte [edi + 0x1d8], al
jne case.default.0xd3d191
cmp byte [edi + 0x1ce], al
jne case.default.0xd3d191
cmp byte [esi + 0xd73], al
jne 0xd3d2c0
movzx eax, byte [esi + 0xd5e]
dec eax
cmp eax, 3
ja case.default.0xd3d191
jmp dword [eax*4 + 0xd3d554]
push 0
push esi
call fcn.00d24560
add esp, 8
cmp byte [esi + 0x144], 0
jne case.default.0xd3d191
cmp dword [esi + 0xe0], 0x1a1
jne 0xd3d240
cmp byte [esi + 0xd67], 0
je 0xd3d240
mov eax, dword [esi + 0xa0]
or eax, dword [esi + 0xa4]
jne 0xd3d1f0
cmp dword [esi + 0xf8], 1
jne 0xd3d1f0
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push esi
call fcn.00d33a30
add esp, 8
jmp 0xd3d215
push str.Got_HTTP_failure_417_while_sending_data
push esi
call fcn.00d33a30
push 2
push edi
call fcn.00d34740
push edi
push esi
call fcn.00d3def0
add esp, 0x18
test eax, eax
jne 0xd3cac3
push dword [esi + 0xcb4]
mov byte [esi + 0xd68], 1
call dword [0xe14380]
mov dword [esi + 0x118], eax
lea eax, [esi + 0x88]
push eax
push esi
call fcn.00d3f530
add esp, 0xc
jmp case.default.0xd3d191
cmp byte [esi + 0x6c7], 0
je 0xd3d273
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.00d33a30
add esp, 8
cmp dword [esi + 0xf8], 0
jle case.default.0xd3d191
or dword [esi + 0xe4], 2
mov dword [esi + 0xf8], 0
jmp case.default.0xd3d191
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.00d33a30
push 2
push edi
call fcn.00d34740
lea eax, [esi + 0x88]
push eax
push esi
call fcn.00d3f530
add esp, 0x18
test eax, eax
jne 0xd3cac3
mov byte [esi + 0x144], 1
cmp byte [esi + 0xd67], al
je case.default.0xd3d191
mov dword [esi + 0xf8], 3
cmp byte [esi + 0xd73], 0
je 0xd3d2de
cmp dword [edi + 0x204], 0xffffffff
je 0xd3d2de
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.00d33a30
add esp, 8
or dword [esi + 0xe4], 2
cmp byte [esi + 0x142], 0
je 0xd3d42e
lea eax, [esi + 0x8b0]
push eax
call fcn.00d2a060
mov ebx, dword [esi + 0xd0]
add esp, 4
cmp byte [ebx], 0
je 0xd3cac1
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp + 8], ecx
mov eax, dword [eax]
push eax
push 0xa
push ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.00d72ff0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0xd3d4c4
mov edi, dword [ebp - 8]
jmp 0xd3ca30
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0xc8], 2
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
pop edi
mov dword [esi + 0xd0], 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.00d33970
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.00d33970
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.00d33970
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.00d33970
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 + 0x142], 0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.00d33a30
add esp, 8
mov dword [esi + 0xfc], 3
mov byte [esi + 0x142], 1
mov eax, 1
mov dword [esi + 0xcc], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x14c], 0
mov ecx, dword [ebp + 0x14]
jne 0xd3d466
mov eax, dword [edi + 0x1e8]
test dword [eax + 0x44], 0x40000
je 0xd3d469
cmp dword [esi + 0x65c], 2
jne 0xd3d469
cmp dword [esi + 0x8c], 0xffffffff
jg 0xd3d469
jl 0xd3d466
cmp dword [esi + 0x88], 0xffffffff
ja 0xd3d469
mov byte [ecx], 1
cmp dword [esi + 0x90], 0
jne 0xd3d480
cmp dword [esi + 0x94], 0
jne 0xd3d480
mov byte [ecx], 1
jmp 0xd3d485
cmp byte [ecx], 0
je 0xd3d48c
and dword [esi + 0xe4], 0xfffffffe
push dword [ebp - 0xc]
push dword [ebp + 8]
push 1
push esi
call fcn.00d338d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.The_requested_URL_returned_error:__d
push esi
call fcn.00d33970
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 ebx, [esi + 0x8b0]
push dword [ebp + 8]
push ebx
call fcn.00d29fe0
add esp, 0xc
test eax, eax
jne 0xd3cac3
cmp dword [esi + 0xcc], eax
jne 0xd3cac1
push ebx
call fcn.00d2a050
add esp, 4
push eax
push ebx
call fcn.004b4c80
add esp, 4
push eax
push edi
push esi
call fcn.00d3dc60
add esp, 0x10
cmp eax, 2
jne 0xd3cac1
push eax
push edi
mov byte [esi + 0x142], 0
mov dword [esi + 0xc8], eax
call fcn.00d34740
add esp, 8
cmp byte [esi + 0x6e9], 0
jne 0xd3cac1
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.00d33970
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret