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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [eax]
lea ebx, [esi + 0x80]
mov eax, dword [ebx + 0x50]
push edi
push ecx
mov edi, edx
mov dword [ebp - 0x24], ecx
push 0xa
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
call fcn.00d745e0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0xd49ce0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub eax, ecx
dec edx
add eax, edx
mov edx, dword [ebp + 8]
mov dword [edx], eax
lea eax, [ecx + 1]
mov edx, dword [ebp - 0xc]
lea ecx, [esi + 0x89c]
mov dword [ebx + 0x50], eax
sub eax, dword [ebp - 0xc]
push eax
call fcn.00d29db0
add esp, 4
test eax, eax
jne 0xd49d8b
mov edx, dword [ebx + 0x4c]
test edx, edx
jne 0xd494fa
lea ecx, [esi + 0x89c]
call fcn.0046a140
push eax
call fcn.0046a130
push eax
mov edx, edi
mov ecx, esi
call fcn.00d48930
add esp, 8
cmp eax, 2
je 0xd49d5e
mov edx, dword [ebx + 0x4c]
lea ecx, [esi + 0x89c]
call fcn.0046a130
mov dword [ebp - 8], eax
mov cl, byte [eax]
cmp cl, 0xa
je 0xd498df
cmp cl, 0xd
je 0xd498df
mov dword [ebp - 0xc], 2
lea ecx, [edx + 1]
mov dword [ebx + 0x4c], ecx
test edx, edx
jne 0xd4982c
mov eax, dword [edi + 0x1e0]
mov eax, dword [eax + 0x44]
test al, 3
je 0xd49739
mov eax, dword [ebp - 8]
mov edi, eax
mov al, byte [eax]
test al, al
je 0xd49560
nop dword [eax]
cmp al, 0x20
je 0xd49558
cmp al, 9
jne 0xd49560
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xd49550
push 5
push str.HTTP_
push edi
call fcn.00d856f0
add esp, 0xc
test eax, eax
jne 0xd4960d
movsx ecx, byte [edi + 5]
mov eax, ecx
sub eax, 0x31
je 0xd49649
sub eax, 1
je 0xd49595
sub eax, 1
jne 0xd49da9
mov al, byte [edi + 6]
cmp al, 0x20
je 0xd495a0
cmp al, 9
jne 0xd4960d
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 - 0x14], edx
cmp al, 9
ja 0xd4960d
mov al, byte [edi + 8]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0xd4960d
mov al, byte [edi + 9]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0xd4960d
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 + 0x60], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0xd496e0
cmp al, 9
je 0xd496e0
cmp al, 0xa
jl 0xd4960d
cmp al, 0xd
jle 0xd496e0
lea ecx, [esi + 0x89c]
call fcn.0046a140
push eax
call fcn.0046a130
mov edx, eax
mov ecx, esi
call fcn.00d48880
add esp, 4
cmp eax, 1
jne 0xd49e3a
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0x60], 0xc8
mov byte [edi + 0x44d], 0xa
jmp 0xd49814
cmp byte [edi + 6], 0x2e
jne 0xd49e14
mov al, byte [edi + 7]
cmp al, 0x30
je 0xd49662
cmp al, 0x31
jne 0xd49e14
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0xd49673
cmp cl, 9
jne 0xd49e14
mov cl, byte [edi + 9]
movsx edx, al
mov al, cl
sub edx, 0x26
sub al, 0x30
mov dword [ebp - 0x14], edx
cmp al, 9
ja 0xd49e14
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0xd49e14
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0xd49e14
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 + 0x60], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xd496e0
cmp al, 9
je 0xd496e0
sub al, 0xa
cmp al, 3
ja 0xd49e14
cmp ecx, 0x64
jl 0xd49dfa
mov eax, edx
sub eax, 0xa
je 0xd496f9
sub eax, 1
jne 0xd49dc3
mov edi, dword [ebp - 0x10]
mov byte [edi + 0x44d], dl
cmp dword [ebx + 0x7c], 3
jne 0xd4971b
cmp dl, 0x14
je 0xd4971b
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.00d391b0
add esp, 8
cmp byte [edi + 0x44d], 0x14
jae 0xd49814
mov eax, dword [edi + 0x420]
mov dword [eax], 0xffffffff
jmp 0xd49814
test eax, 0x40000
je 0xd49e3a
mov eax, dword [ebp - 8]
mov edi, eax
mov al, byte [eax]
test al, al
je 0xd49760
nop
cmp al, 0x20
je 0xd49758
cmp al, 9
jne 0xd49760
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xd49750
push 5
push str.RTSP_
push edi
call fcn.00d856f0
add esp, 0xc
test eax, eax
jne 0xd49e3a
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0xd49e2e
cmp byte [edi + 6], 0x2e
jne 0xd49e2e
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0xd49e2e
mov al, byte [edi + 8]
cmp al, 0x20
je 0xd497ab
cmp al, 9
jne 0xd49e2e
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0xd49e2e
mov dh, byte [edi + 0xa]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0xd49e2e
mov dl, byte [edi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0xd49e2e
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 + 0x60], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xd4980a
cmp al, 9
je 0xd4980a
sub al, 0xa
cmp al, 3
ja 0xd49e2e
mov edi, dword [ebp - 0x10]
mov byte [edi + 0x44d], 0xb
mov edx, edi
mov ecx, esi
call fcn.00d491e0
test eax, eax
jne 0xd49d8b
mov dword [ebp - 0xc], 6
mov ecx, esi
call fcn.00d493c0
test eax, eax
jne 0xd49d8b
push dword [ebp - 8]
mov edx, edi
mov ecx, esi
call fcn.00d48960
add esp, 4
test eax, eax
jne 0xd49d8b
cmp byte [esi + 0x6c7], al
je 0xd4985e
or dword [ebp - 0xc], 1
mov edi, dword [ebx + 0x60]
lea ecx, [esi + 0x89c]
call fcn.0046a140
push eax
push dword [ebp - 8]
mov edx, 1
mov ecx, esi
call fcn.00d39050
lea ecx, [esi + 0x89c]
call fcn.0046a140
mov edx, dword [ebp - 0xc]
mov ecx, esi
push eax
push dword [ebp - 8]
lea eax, [edi - 0x64]
or edx, 0x10
cmp eax, 0x64
cmovae edx, dword [ebp - 0xc]
call fcn.00d2f430
add esp, 0x10
test eax, eax
jne 0xd49d8b
lea ecx, [esi + 0x89c]
call fcn.0046a140
add dword [esi + 0xd80], eax
adc dword [esi + 0xd84], 0
call fcn.0046a140
add dword [esi + 0xa0], eax
mov edi, dword [ebp - 0x10]
adc dword [esi + 0xa4], 0
jmp 0xd49ca6
mov ecx, dword [ebx + 0x60]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0xd49959
sub ecx, 0x64
je 0xd49929
sub ecx, 1
je 0xd4990d
mov byte [ebx + 0xc2], 1
mov dword [ebx + 0x4c], 0
lea ecx, [ebx + 0xc2]
jmp 0xd499c1
cmp dword [ebx + 0x7c], 2
je 0xd49e4a
mov byte [ebx + 0xc2], 0
lea ecx, [ebx + 0xc2]
jmp 0xd499c1
cmp dword [ebx + 0x78], 0
lea eax, [ebx + 0xc2]
mov dword [ebp - 0x1c], eax
mov byte [eax], 1
mov dword [ebx + 0x4c], 0
jle 0xd49902
or dword [ebx + 0x64], 2
mov ecx, esi
mov dword [ebx + 0x78], 0
call fcn.00d2ef50
mov ecx, dword [ebp - 0x1c]
jmp 0xd499c1
mov eax, dword [ebx]
lea edx, [ebx + 0xc2]
and eax, dword [ebx + 4]
mov ecx, edx
mov dword [ebp - 0x1c], edx
mov byte [edx], 0
cmp eax, 0xffffffff
jne 0xd499c1
cmp byte [ebx + 0xc7], 0
jne 0xd499c1
cmp byte [edi + 0x1c6], 0
jne 0xd499c1
cmp byte [edi + 0x44d], 0xb
jne 0xd499c1
mov eax, dword [edi + 0x1e0]
test dword [eax + 0x44], 0x40000
jne 0xd499c1
cmp byte [esi + 0xd46], 5
je 0xd499c1
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.00d391b0
add esp, 8
mov edx, 2
mov ecx, edi
call fcn.00d2f9f0
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], 0
jne 0xd499d5
mov ecx, esi
call fcn.00d49300
test eax, eax
jne 0xd49d8b
cmp byte [edi + 0x1c6], 0
je 0xd49a65
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xd499fa
cmp dword [edi + 0x250], 2
je 0xd49a0a
jmp 0xd49a1f
cmp eax, 0x197
jne 0xd49a1f
cmp dword [edi + 0x254], 2
jne 0xd49a1f
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00d391b0
add esp, 8
mov byte [esi + 0xd4d], 1
cmp byte [edi + 0x1c6], 0
je 0xd49a65
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xd49a40
cmp dword [edi + 0x2d8], 1
je 0xd49a50
jmp 0xd49a65
cmp eax, 0x197
jne 0xd49a65
cmp dword [edi + 0x2dc], 1
jne 0xd49a65
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00d391b0
add esp, 8
mov byte [esi + 0xd4d], 1
cmp dword [edi + 0x2d8], 3
jne 0xd49a84
cmp dword [esi + 0xe0], 0x191
je 0xd49a84
mov dword [edi + 0x2d8], 4
cmp dword [edi + 0x2dc], 3
jne 0xd49aa3
cmp dword [esi + 0xe0], 0x197
je 0xd49aa3
mov dword [edi + 0x2dc], 4
mov eax, dword [ebx + 0x60]
lea ecx, [esi + 0x89c]
sub eax, 0x64
cmp eax, 0x64
sbb edx, edx
xor eax, eax
and edx, 0x10
cmp byte [esi + 0x6c7], al
setne al
add eax, 2
or edx, eax
call fcn.0046a140
push eax
mov dword [ebp - 0x14], eax
call fcn.0046a130
push eax
mov ecx, esi
call fcn.00d2f430
add esp, 8
test eax, eax
jne 0xd49d8b
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0xa4]
cdq
add dword [esi + 0xd80], eax
adc dword [esi + 0xd84], edx
add eax, dword [esi + 0xa0]
mov dword [ebp - 0x1c], eax
adc ecx, edx
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], ecx
mov dword [ebp - 8], ecx
mov ecx, esi
call fcn.00d460b0
test al, al
mov eax, dword [ebx + 0x60]
jne 0xd49ee5
add eax, 0xffffff9c
cmp eax, 0x63
ja 0xd49b3a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
jmp 0xd49b48
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xac], ecx
mov ecx, esi
mov dword [esi + 0xa8], eax
call fcn.00d458b0
test eax, eax
jne 0xd49d8b
cmp dword [ebx + 0x60], 0x12c
jl 0xd49c93
cmp byte [edi + 0x1d0], al
jne case.default.0xd49ba5
cmp byte [edi + 0x1c6], al
jne case.default.0xd49ba5
cmp byte [esi + 0xd5b], al
jne 0xd49c78
movzx eax, byte [esi + 0xd46]
dec eax
cmp eax, 3
ja case.default.0xd49ba5
jmp dword [eax*4 + 0xd49f00]
mov ecx, esi
call fcn.00d2ef50
cmp byte [ebx + 0xc4], 0
jne case.default.0xd49ba5
cmp dword [ebx + 0x60], 0x1a1
jne 0xd49c04
cmp byte [esi + 0xd4f], 0
je 0xd49c04
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.00d391b0
push dword [esi + 0xca4]
mov byte [esi + 0xd50], 1
call dword [0xddede0]
add esp, 0xc
mov dword [esi + 0x118], eax
mov edx, ebx
mov ecx, esi
call fcn.00d40af0
jmp case.default.0xd49ba5
cmp byte [esi + 0x6c3], 0
je 0xd49c2e
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.00d391b0
add esp, 8
cmp dword [ebx + 0x78], 0
jle case.default.0xd49ba5
or dword [ebx + 0x64], 2
mov dword [ebx + 0x78], 0
jmp case.default.0xd49ba5
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.00d391b0
add esp, 8
mov edx, 2
mov ecx, edi
call fcn.00d2f9f0
mov edx, ebx
mov ecx, esi
call fcn.00d40af0
test eax, eax
jne 0xd49d8b
mov byte [ebx + 0xc4], 1
cmp byte [esi + 0xd4f], al
je case.default.0xd49ba5
mov dword [ebx + 0x78], 3
cmp byte [esi + 0xd5b], 0
je 0xd49c93
cmp dword [edi + 0x1fc], 0xffffffff
je 0xd49c93
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.00d391b0
add esp, 8
or dword [ebx + 0x64], 2
cmp byte [ebx + 0xc2], 0
je 0xd49e79
lea ecx, [esi + 0x89c]
call fcn.00d29d40
mov eax, dword [ebx + 0x50]
mov dword [ebp - 8], eax
cmp byte [eax], 0
je 0xd49d89
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax]
push eax
push 0xa
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
call fcn.00d745e0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0xd49496
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
lea ecx, [esi + 0x89c]
call fcn.00d29db0
add esp, 4
test eax, eax
jne 0xd49d8b
cmp dword [ebx + 0x4c], eax
jne 0xd49d89
lea ecx, [esi + 0x89c]
call fcn.0046a140
push eax
call fcn.0046a130
push eax
mov edx, edi
mov ecx, esi
call fcn.00d48930
add esp, 8
cmp eax, 2
jne 0xd49d89
mov edx, eax
mov byte [ebx + 0xc2], 0
mov ecx, edi
mov dword [ebx + 0x48], eax
call fcn.00d2f9f0
cmp byte [esi + 0x6e5], 0
jne 0xd49d89
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.00d390f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 2
mov ecx, edi
call fcn.00d2f9f0
cmp byte [esi + 0x6e5], 0
je 0xd49d44
mov eax, dword [ebp + 8]
mov byte [ebx + 0xc2], 0
cmp dword [eax], 0
je 0xd49d92
mov dword [ebx + 0x48], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x48], edx
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x50], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.00d390f0
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 - 0x14]
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.00d390f0
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.00d390f0
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.00d390f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0xc2], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.00d391b0
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 + 0x14c], 0
mov ecx, dword [ebp + 0xc]
jne 0xd49eaa
mov eax, dword [edi + 0x1e0]
test dword [eax + 0x44], 0x40000
je 0xd49ead
cmp dword [esi + 0x658], 2
jne 0xd49ead
cmp dword [ebx + 4], 0xffffffff
jg 0xd49ead
jl 0xd49eaa
cmp dword [ebx], 0xffffffff
ja 0xd49ead
mov byte [ecx], 1
cmp dword [ebx + 8], 0
jne 0xd49ebe
cmp dword [ebx + 0xc], 0
jne 0xd49ebe
mov byte [ecx], 1
jmp 0xd49ec3
cmp byte [ecx], 0
je 0xd49ec7
and dword [ebx + 0x64], 0xfffffffe
push dword [ebp - 0x14]
mov edx, 1
mov ecx, esi
push dword [ebp - 0xc]
call fcn.00d39050
add esp, 8
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.00d390f0
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret