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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
mov ebx, ecx
push edi
push ecx
mov edx, dword [esi + 0xd0]
mov edi, edx
mov eax, edx
mov dword [ebp - 0x18], ecx
push 0xa
push eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], eax
mov dword [ebp + 8], ecx
call fcn.00478030
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x42a45c
nop
mov edx, dword [ebp + 0x10]
sub edi, ecx
lea eax, [edi - 1]
add eax, ebx
lea edi, [esi + 0x8a4]
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.00417370
add esp, 0xc
test eax, eax
jne 0x429bf3
cmp dword [esi + 0xcc], eax
jne 0x429bfa
push edi
call fcn.004173e0
add esp, 4
push eax
push edi
call fcn.004173f0
mov ebx, dword [ebp + 0xc]
add esp, 4
push eax
push ebx
push esi
call fcn.0042ad90
add esp, 0x10
cmp eax, 2
jne 0x429bfd
push eax
push ebx
call fcn.00421a90
add esp, 8
cmp byte [esi + 0x6ea], 0
je 0x42a4d3
mov eax, dword [ebp + 0x10]
mov byte [esi + 0x142], 0
cmp dword [eax], 0
je 0x42a4ed
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.004173f0
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x429fef
cmp cl, 0xd
je 0x429fef
mov ecx, dword [esi + 0xcc]
mov edi, 2
lea eax, [ecx + 1]
mov dword [esi + 0xcc], eax
test ecx, ecx
jne 0x429f39
mov eax, dword [ebx + 0x1e0]
mov eax, dword [eax + 0x44]
test al, 3
je 0x429e49
mov al, byte [edx]
mov edi, edx
test al, al
je 0x429c64
cmp al, 0x20
je 0x429c5c
cmp al, 9
jne 0x429c64
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x429c54
push 5
push str.HTTP_
push edi
call fcn.00482ab0
add esp, 0xc
test eax, eax
jne 0x429d14
movsx ecx, byte [edi + 5]
mov eax, ecx
sub eax, 0x31
je 0x429d56
sub eax, 1
je 0x429c99
sub eax, 1
jne 0x42a50e
mov al, byte [edi + 6]
cmp al, 0x20
je 0x429ca4
cmp al, 9
jne 0x429d14
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 - 8], edx
cmp al, 9
ja 0x429d14
mov al, byte [edi + 8]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0x429d14
mov al, byte [edi + 9]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x429d14
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 0x429df0
cmp al, 9
je 0x429df0
cmp al, 0xa
jl 0x429d14
cmp al, 0xd
jle 0x429df0
lea edi, [esi + 0x8a4]
push edi
call fcn.004173e0
add esp, 4
push eax
push edi
call fcn.004173f0
add esp, 4
push eax
push esi
call fcn.0042acd0
add esp, 0xc
cmp eax, 1
jne 0x42a59f
mov dword [esi + 0xe0], 0xc8
mov byte [ebx + 0x453], 0xa
jmp 0x429f24
cmp byte [edi + 6], 0x2e
jne 0x42a579
mov al, byte [edi + 7]
cmp al, 0x30
je 0x429d6f
cmp al, 0x31
jne 0x42a579
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x429d80
cmp cl, 9
jne 0x42a579
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 0x42a579
mov al, byte [edi + 0xa]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0x42a579
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x42a579
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 0x429df0
cmp al, 9
je 0x429df0
sub al, 0xa
cmp al, 3
ja 0x42a579
cmp ecx, 0x64
jl 0x42a55f
mov eax, edx
sub eax, 0xa
je 0x429e09
sub eax, 1
jne 0x42a528
mov byte [ebx + 0x453], dl
cmp dword [esi + 0xfc], 3
jne 0x429e2b
cmp dl, 0x14
je 0x429e2b
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.00420e00
add esp, 8
cmp byte [ebx + 0x453], 0x14
jae 0x429f24
mov eax, dword [ebx + 0x420]
mov dword [eax], 0xffffffff
jmp 0x429f24
test eax, 0x40000
je 0x42a59f
mov al, byte [edx]
mov edi, edx
test al, al
je 0x429e70
nop dword [eax]
cmp al, 0x20
je 0x429e68
cmp al, 9
jne 0x429e70
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x429e60
push 5
push str.RTSP_
push edi
call fcn.00482ab0
add esp, 0xc
test eax, eax
jne 0x42a59f
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0x42a593
cmp byte [edi + 6], 0x2e
jne 0x42a593
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0x42a593
mov al, byte [edi + 8]
cmp al, 0x20
je 0x429ebb
cmp al, 9
jne 0x42a593
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x42a593
mov dh, byte [edi + 0xa]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x42a593
mov dl, byte [edi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x42a593
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 [esi + 0xe0], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x429f1d
cmp al, 9
je 0x429f1d
sub al, 0xa
cmp al, 3
ja 0x42a593
mov byte [ebx + 0x453], 0xb
push ebx
push esi
call fcn.0042a930
add esp, 8
test eax, eax
jne 0x429bf3
lea edi, [eax + 6]
push esi
call fcn.0042b6a0
add esp, 4
test eax, eax
jne 0x429bf3
push dword [ebp - 0xc]
push ebx
push esi
call fcn.00428a80
add esp, 0xc
test eax, eax
jne 0x429bf3
mov ebx, edi
or ebx, 1
cmp byte [esi + 0x6cb], al
lea eax, [esi + 0x8a4]
cmove ebx, edi
mov edi, dword [esi + 0xe0]
push eax
call fcn.004173e0
push eax
push dword [ebp - 0xc]
push 1
push esi
call fcn.00420ca0
lea eax, [esi + 0x8a4]
push eax
call fcn.004173e0
push eax
push dword [ebp - 0xc]
lea eax, [edi - 0x64]
mov ecx, ebx
or ecx, 0x10
cmp eax, 0x64
cmovae ecx, ebx
push ecx
push esi
call fcn.00420e80
add esp, 0x28
test eax, eax
jne 0x429bf3
lea ebx, [esi + 0x8a4]
push ebx
call fcn.004173e0
add dword [esi + 0xd70], eax
push ebx
adc dword [esi + 0xd74], 0
call fcn.004173e0
add esp, 8
add dword [esi + 0xa0], eax
adc dword [esi + 0xa4], 0
jmp 0x42a421
mov ecx, dword [esi + 0xe0]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x42a08c
sub ecx, 0x64
je 0x42a046
sub ecx, 1
je 0x42a028
lea edi, [esi + 0x142]
mov dword [esi + 0xcc], 0
mov byte [edi], 1
mov eax, edi
mov dword [ebp + 8], edi
jmp 0x42a10a
cmp dword [esi + 0xfc], 2
je 0x42a5af
lea eax, [esi + 0x142]
mov byte [eax], 0
mov dword [ebp + 8], eax
jmp 0x42a10a
cmp dword [esi + 0xf8], 0
lea edi, [esi + 0x142]
mov dword [ebp + 8], edi
mov byte [edi], 1
mov dword [esi + 0xcc], 0
jle 0x42a084
or dword [esi + 0xe4], 2
push 0
push esi
mov dword [esi + 0xf8], 0
call fcn.004118f0
add esp, 8
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
jmp 0x42a10a
mov eax, dword [esi + 0x80]
lea edi, [esi + 0x142]
and eax, dword [esi + 0x84]
cmp eax, 0xffffffff
mov byte [edi], 0
mov dword [ebp + 8], edi
mov eax, edi
jne 0x42a10a
cmp byte [esi + 0x147], 0
mov dword [ebp + 8], eax
jne 0x42a10a
cmp byte [ebx + 0x1c6], 0
mov dword [ebp + 8], eax
jne 0x42a10a
cmp byte [ebx + 0x453], 0xb
mov dword [ebp + 8], eax
jne 0x42a10a
mov eax, dword [ebx + 0x1e0]
mov dword [ebp + 8], edi
test dword [eax + 0x44], 0x40000
mov eax, edi
jne 0x42a10a
cmp byte [esi + 0xc94], 5
mov dword [ebp + 8], eax
je 0x42a10a
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.00420e00
push 2
push ebx
call fcn.00421a90
mov eax, edi
add esp, 0x10
mov dword [ebp + 8], eax
cmp byte [eax], 0
jne 0x42a120
push esi
call fcn.0042a860
add esp, 4
test eax, eax
jne 0x429bf3
cmp byte [ebx + 0x1c6], 0
je 0x42a1b0
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0x42a145
cmp dword [ebx + 0x250], 2
je 0x42a155
jmp 0x42a16a
cmp eax, 0x197
jne 0x42a16a
cmp dword [ebx + 0x254], 2
jne 0x42a16a
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00420e00
add esp, 8
mov byte [esi + 0xd3d], 1
cmp byte [ebx + 0x1c6], 0
je 0x42a1b0
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0x42a18b
cmp dword [ebx + 0x2d8], 1
je 0x42a19b
jmp 0x42a1b0
cmp eax, 0x197
jne 0x42a1b0
cmp dword [ebx + 0x2dc], 1
jne 0x42a1b0
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00420e00
add esp, 8
mov byte [esi + 0xd3d], 1
cmp dword [ebx + 0x2d8], 3
jne 0x42a1cf
cmp dword [esi + 0xe0], 0x191
je 0x42a1cf
mov dword [ebx + 0x2d8], 4
cmp dword [ebx + 0x2dc], 3
jne 0x42a1ee
cmp dword [esi + 0xe0], 0x197
je 0x42a1ee
mov dword [ebx + 0x2dc], 4
mov eax, dword [esi + 0xe0]
sub eax, 0x64
cmp eax, 0x64
sbb edi, edi
xor eax, eax
and edi, 0x10
cmp byte [esi + 0x6cb], al
setne al
add eax, 2
or edi, eax
lea eax, [esi + 0x8a4]
push eax
call fcn.004173e0
add esp, 4
mov dword [ebp - 0xc], eax
push eax
lea eax, [esi + 0x8a4]
push eax
call fcn.004173f0
add esp, 4
push eax
push edi
push esi
call fcn.00420e80
add esp, 0x10
test eax, eax
jne 0x429bf3
mov eax, dword [ebp - 0xc]
cdq
mov edi, eax
mov eax, edx
add dword [esi + 0xd70], edi
push esi
adc dword [esi + 0xd74], eax
add edi, dword [esi + 0xa0]
mov dword [esi + 0xa0], edi
adc eax, dword [esi + 0xa4]
mov dword [ebp - 0x10], eax
mov dword [esi + 0xa4], eax
call fcn.0042b240
add esp, 4
test al, al
mov eax, dword [esi + 0xe0]
jne 0x42a65c
add eax, 0xffffff9c
cmp eax, 0x63
ja 0x42a297
mov eax, dword [ebp - 0x10]
jmp 0x42a2a5
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
push esi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], eax
call fcn.00427a90
add esp, 4
test eax, eax
jne 0x429bf3
cmp dword [esi + 0xe0], 0x12c
jl 0x42a40f
cmp byte [ebx + 0x1d0], al
jne case.default.0x42a307
cmp byte [ebx + 0x1c6], al
jne case.default.0x42a307
cmp byte [esi + 0xd4b], al
jne 0x42a3f1
movzx eax, byte [esi + 0xc94]
dec eax
cmp eax, 3
ja case.default.0x42a307
jmp dword [eax*4 + 0x42a678]
push 0
push esi
call fcn.004118f0
add esp, 8
cmp byte [esi + 0x144], 0
jne case.default.0x42a307
cmp dword [esi + 0xe0], 0x1a1
jne 0x42a371
cmp byte [esi + 0xd3f], 0
je 0x42a371
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.00420e00
push dword [esi + 0xc98]
mov byte [esi + 0xd40], 1
call dword [0x4ca10c]
mov dword [esi + 0x118], eax
lea eax, [esi + 0x80]
push eax
push esi
call fcn.0042c6d0
add esp, 0x14
jmp case.default.0x42a307
cmp byte [esi + 0x6c7], 0
je 0x42a3a4
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.00420e00
add esp, 8
cmp dword [esi + 0xf8], 0
jle case.default.0x42a307
or dword [esi + 0xe4], 2
mov dword [esi + 0xf8], 0
jmp case.default.0x42a307
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.00420e00
push 2
push ebx
call fcn.00421a90
lea eax, [esi + 0x80]
push eax
push esi
call fcn.0042c6d0
add esp, 0x18
test eax, eax
jne 0x429bf3
mov byte [esi + 0x144], 1
cmp byte [esi + 0xd3f], al
je case.default.0x42a307
mov dword [esi + 0xf8], 3
cmp byte [esi + 0xd4b], 0
je 0x42a40f
cmp dword [ebx + 0x1fc], 0xffffffff
je 0x42a40f
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.00420e00
add esp, 8
or dword [esi + 0xe4], 2
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x42a5e4
lea ebx, [esi + 0x8a4]
push ebx
call fcn.00417400
mov edi, dword [esi + 0xd0]
add esp, 4
cmp byte [edi], 0
je 0x429bf1
mov ecx, dword [ebp + 0x10]
mov eax, edi
mov dword [ebp - 8], eax
mov ebx, dword [ecx]
push ebx
push 0xa
push eax
mov dword [ebp + 8], ebx
call fcn.00478030
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x429b60
push dword [ebp + 8]
lea ebx, [esi + 0x8a4]
push dword [ebp - 8]
push ebx
call fcn.00417370
add esp, 0xc
test eax, eax
jne 0x429bf3
cmp dword [esi + 0xcc], eax
jne 0x429bf1
push ebx
call fcn.004173e0
add esp, 4
push eax
push ebx
call fcn.004173f0
mov edi, dword [ebp + 0xc]
add esp, 4
push eax
push edi
push esi
call fcn.0042ad90
add esp, 0x10
cmp eax, 2
jne 0x429bf1
push eax
push edi
mov byte [esi + 0x142], 0
mov dword [esi + 0xc8], eax
call fcn.00421a90
add esp, 8
cmp byte [esi + 0x6ea], 0
jne 0x429bf1
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.00420d40
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0xc8], 2
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
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.00420d40
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 esi
call fcn.00420d40
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.00420d40
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.00420d40
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.00420e00
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 0x42a61c
mov eax, dword [ebx + 0x1e0]
test dword [eax + 0x44], 0x40000
je 0x42a61f
cmp dword [esi + 0x65c], 2
jne 0x42a61f
cmp dword [esi + 0x84], 0xffffffff
jg 0x42a61f
jl 0x42a61c
cmp dword [esi + 0x80], 0xffffffff
ja 0x42a61f
mov byte [ecx], 1
cmp dword [esi + 0x88], 0
jne 0x42a636
cmp dword [esi + 0x8c], 0
jne 0x42a636
mov byte [ecx], 1
jmp 0x42a63b
cmp byte [ecx], 0
je 0x42a642
and dword [esi + 0xe4], 0xfffffffe
push dword [ebp - 0xc]
push dword [ebp - 8]
push 1
push esi
call fcn.00420ca0
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.00420d40
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret