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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x24]
mov dword [ebp], 0
mov al, byte [ebx]
cmp al, 0xa
je 0x430765
cmp al, 0xd
je 0x430765
mov ecx, dword [edi + 0xd4]
mov esi, 4
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0xd4], eax
test ecx, ecx
jne 0x430687
mov dword [edi + 0xe0], 0
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x2b4]
mov eax, dword [eax + 0x48]
test eax, 0xc0000003
je 0x43042a
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x430295
cmp al, 0x20
je 0x43028d
cmp al, 9
jne 0x430295
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x430285
push 5
push str.HTTP_
push esi
call fcn.0046b560
add esp, 0xc
test eax, eax
jne 0x430358
movsx ecx, byte [esi + 5]
mov eax, ecx
sub eax, 0x31
je 0x430385
sub eax, 1
je 0x4302e1
sub eax, 1
je 0x4302e1
push str.Unsupported_HTTP_version_in_response
push edi
call fcn.0041e090
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov al, byte [esi + 6]
cmp al, 0x20
je 0x4302ec
cmp al, 9
jne 0x430358
lea eax, [ecx - 0x30]
lea eax, [eax + eax*4]
add eax, eax
mov dword [edi + 0xe0], eax
mov cl, byte [esi + 7]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x430358
mov dl, byte [esi + 8]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x430358
mov dh, byte [esi + 9]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x430358
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 [edi + 0xe4], eax
mov al, byte [esi + 0xa]
cmp al, 0x20
je 0x430505
cmp al, 9
je 0x430505
cmp al, 0xa
jl 0x430358
cmp al, 0xd
jle 0x430505
push ebp
push ebx
push edi
call fcn.0042f540
add esp, 0xc
cmp eax, 1
jne 0x4306b3
mov dword [edi + 0xe4], 0xc8
mov dword [edi + 0xe0], 0xa
jmp 0x430505
cmp byte [esi + 6], 0x2e
jne 0x43040f
mov al, byte [esi + 7]
cmp al, 0x30
je 0x43039a
cmp al, 0x31
jne 0x43040f
mov cl, byte [esi + 8]
cmp cl, 0x20
je 0x4303a7
cmp cl, 9
jne 0x43040f
movsx eax, al
sub eax, 0x26
mov dword [edi + 0xe0], eax
mov cl, byte [esi + 9]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x43040f
mov dl, byte [esi + 0xa]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x43040f
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x43040f
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 [edi + 0xe4], eax
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x430505
cmp al, 9
je 0x430505
sub al, 0xa
cmp al, 3
jbe 0x430505
push str.Unsupported_HTTP_1_subversion_in_response
push edi
call fcn.0041e090
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test eax, 0x40000
je 0x4306b3
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x430450
nop dword [eax]
cmp al, 0x20
je 0x430448
cmp al, 9
jne 0x430450
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x430440
push 5
push str.RTSP_
push esi
call fcn.0046b560
add esp, 0xc
test eax, eax
jne 0x4306b3
mov al, byte [esi + 5]
sub al, 0x30
cmp al, 9
ja 0x4306ba
cmp byte [esi + 6], 0x2e
jne 0x4306ba
mov al, byte [esi + 7]
sub al, 0x30
cmp al, 9
ja 0x4306ba
mov al, byte [esi + 8]
cmp al, 0x20
je 0x43049b
cmp al, 9
jne 0x4306ba
mov cl, byte [esi + 9]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x4306ba
mov dl, byte [esi + 0xa]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x4306ba
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x4306ba
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 [edi + 0xe4], eax
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x4304fb
cmp al, 9
je 0x4304fb
sub al, 0xa
cmp al, 3
ja 0x4306ba
mov dword [edi + 0xe0], 0xb
mov ecx, dword [edi + 0xe0]
mov eax, ecx
mov esi, dword [edi + 0x18]
mov dword [esp + 0x38], esi
sub eax, 0xa
je 0x430531
sub eax, 1
je 0x430531
mov eax, ecx
mov ecx, 0xa
cdq
idiv ecx
mov ecx, str.Unsupported_HTTP_version___u._d__in_response
mov esi, edx
jmp 0x430570
mov al, byte [esi + 0x518]
test al, al
je 0x43058d
movzx ecx, al
mov eax, 0xcccccccd
mul ecx
mov eax, 0x66666667
mov ecx, edx
imul dword [edi + 0xe0]
shr ecx, 3
sar edx, 2
mov esi, edx
mov dword [esp + 0x24], ecx
shr esi, 0x1f
add esi, edx
cmp esi, ecx
je 0x430589
mov eax, dword [esp + 0x24]
mov ecx, str.Version_mismatch__from_HTTP__u_to_HTTP__u_
push esi
push eax
push ecx
push edi
call fcn.0041e090
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x38]
mov eax, dword [edi + 0xe4]
mov dword [edi + 0xd50], eax
mov eax, dword [edi + 0xe0]
mov dword [edi + 0xd58], eax
movzx eax, byte [edi + 0xe0]
mov byte [esi + 0x518], al
mov al, byte [edi + 0xd2d]
test al, al
je 0x4305cb
mov ecx, dword [edi + 0xe0]
movzx eax, al
cmp eax, ecx
jle 0x4305dd
jmp 0x4305d1
mov cl, byte [edi + 0xe0]
mov byte [edi + 0xd2d], cl
mov ecx, dword [edi + 0xe0]
mov eax, dword [edi + 0xbf8]
or eax, dword [edi + 0xbfc]
je 0x430607
cmp byte [edi + 0xd2e], 0
jne 0x430607
cmp dword [edi + 0xe4], 0x1a0
jne 0x430607
mov byte [edi + 0x143], 1
cmp ecx, 0xa
jne 0x430622
push str.HTTP_1.0__assume_close_after_body
push edi
call fcn.0041e160
push 1
push esi
call fcn.004208f0
add esp, 0x10
mov ecx, dword [edi + 0xe4]
lea eax, [ecx - 0x64]
cmp eax, 0x63
setbe al
mov byte [edi + 0x144], al
sub ecx, 0xcc
je 0x430653
sub ecx, 0x64
jne 0x430682
cmp byte [edi + 0x3c0], cl
je 0x430653
mov byte [edi + 0xe10], 1
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov byte [edi + 0x144], 1
mov esi, 0xc
push ebp
push 0
push ebx
call fcn.00462ef0
add esp, 0xc
test eax, eax
je 0x4306c7
mov eax, str.Nul_byte_in_header
push eax
push edi
call fcn.0041e090
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov byte [edi + 0x139], 0
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x10
ret
mov ecx, dword [edi + 0xd4]
cmp ecx, 2
jl 0x43070d
mov al, byte [ebx]
cmp al, 0x20
je 0x4306dc
cmp al, 9
jne 0x4306e1
cmp ecx, 2
jg 0x43070d
push ebp
push 0x3a
push ebx
call fcn.00462ef0
add esp, 0xc
test eax, eax
jne 0x43070d
mov eax, str.Header_without_colon
push eax
push edi
call fcn.0041e090
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push ebp
push ebx
push edi
call fcn.0042dcb0
add esp, 0xc
test eax, eax
jne 0x4307e0
push ebp
push ebx
push 1
push edi
call fcn.0041dff0
mov eax, dword [edi + 0xe4]
add esp, 0x10
sub eax, 0x64
cmp eax, 0x64
jae 0x43073e
or esi, 0x20
push ebp
push ebx
push esi
push edi
call fcn.0041f3c0
add esp, 0x10
test eax, eax
jne 0x4307e0
push eax
push ebp
push edi
call fcn.0042d2b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x2c]
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00414c80
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00414c40
add esp, 0x14
test eax, eax
jne 0x4307e0
lea eax, [edi + 0x8a0]
push eax
call fcn.00414ca0
add esp, 4
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x18]
push dword [esp + 0x38]
push eax
call fcn.00412c60
add esp, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00412bb0
add esp, 4
push eax
push edi
call fcn.0042f690
mov ecx, dword [esp + 0x3c]
mov esi, eax
add dword [ebp], ecx
lea eax, [esp + 0x28]
push eax
call fcn.00414c50
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret