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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, dword [eax]
lea esi, [ebx + 0x80]
mov eax, dword [esi + 0x50]
push edi
push edx
lea ecx, [ebx + 0x8a4]
mov dword [ebp - 0x1c], edx
push 0xa
push eax
mov dword [ebp - 0x20], eax
mov edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
call fcn.004e79f0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4bb175
mov eax, dword [esi + 0x50]
sub edi, ecx
mov edx, dword [ebp + 0x10]
dec eax
add eax, edi
lea edi, [ebx + 0x8a4]
mov dword [edx], eax
lea eax, [ecx + 1]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x50], eax
sub eax, ecx
push eax
push ecx
push edi
call fcn.004a92b0
add esp, 0xc
test eax, eax
jne 0x4ba8a2
cmp dword [esi + 0x4c], eax
jne 0x4ba8a9
push edi
call fcn.004a9320
add esp, 4
push eax
push edi
call fcn.004a9330
mov edi, dword [ebp + 0xc]
add esp, 4
push eax
push edi
push ebx
call fcn.004bb900
add esp, 0x10
cmp eax, 2
jne 0x4ba8ac
push eax
push edi
call fcn.004b2810
add esp, 8
cmp byte [ebx + 0x6e9], 0
je 0x4bb1f2
mov eax, dword [ebp + 0x10]
mov byte [esi + 0xc2], 0
cmp dword [eax], 0
je 0x4bb007
mov dword [esi + 0x48], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0x8a4]
push eax
call fcn.004a9330
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
mov al, byte [edx]
cmp al, 0xa
je 0x4bac97
cmp al, 0xd
je 0x4bac97
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 8], 2
lea eax, [ecx + 1]
mov dword [esi + 0x4c], eax
test ecx, ecx
jne 0x4babde
mov eax, dword [edi + 0x1e0]
mov eax, dword [eax + 0x44]
test al, 3
je 0x4baaee
mov al, byte [edx]
mov edi, edx
test al, al
je 0x4ba913
cmp al, 0x20
je 0x4ba90b
cmp al, 9
jne 0x4ba913
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4ba903
push 5
push str.HTTP_
push edi
call fcn.004f7f40
add esp, 0xc
test eax, eax
jne 0x4ba9bd
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x4ba9ff
sub al, 0x32
cmp al, 1
ja 0x4bb022
mov al, byte [edi + 6]
cmp al, 0x20
je 0x4ba94d
cmp al, 9
jne 0x4ba9bd
movsx eax, cl
mov cl, byte [edi + 7]
sub eax, 0x30
lea edx, [eax + eax*4]
mov al, cl
add edx, edx
sub al, 0x30
mov dword [ebp - 8], edx
cmp al, 9
ja 0x4ba9bd
mov al, byte [edi + 8]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x4ba9bd
mov al, byte [edi + 9]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0x4ba9bd
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 [esi + 0x60], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x4baa96
cmp al, 9
je 0x4baa96
cmp al, 0xa
jl 0x4ba9bd
cmp al, 0xd
jle 0x4baa96
lea edi, [ebx + 0x8a4]
push edi
call fcn.004a9320
add esp, 4
push eax
push edi
call fcn.004a9330
add esp, 4
push eax
push ebx
call fcn.004bb840
add esp, 0xc
cmp eax, 1
jne 0x4bb0b3
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x60], 0xc8
mov byte [edi + 0x330], 0xa
jmp 0x4babc5
cmp byte [edi + 6], 0x2e
jne 0x4bb08d
mov al, byte [edi + 7]
cmp al, 0x30
je 0x4baa18
cmp al, 0x31
jne 0x4bb08d
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x4baa29
cmp cl, 9
jne 0x4bb08d
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 0x4bb08d
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0x4bb08d
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x4bb08d
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 [esi + 0x60], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x4baa96
cmp al, 9
je 0x4baa96
sub al, 0xa
cmp al, 3
ja 0x4bb08d
cmp ecx, 0x64
jl 0x4bb073
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x4bb03c
mov edi, dword [ebp + 0xc]
mov al, dl
mov byte [edi + 0x330], dl
cmp dword [esi + 0x7c], 3
jne 0x4baad5
cmp dl, 0x14
je 0x4baad5
push str.Lying_server__not_serving_HTTP_2
push ebx
call fcn.004b1bf0
mov al, byte [edi + 0x330]
add esp, 8
cmp al, 0x14
jae 0x4babc5
mov eax, dword [edi + 0x300]
mov dword [eax], 0xffffffff
jmp 0x4babc5
test eax, 0x40000
je 0x4bb0b3
mov al, byte [edx]
mov edi, edx
test al, al
je 0x4bab11
cmp al, 0x20
je 0x4bab09
cmp al, 9
jne 0x4bab11
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4bab01
push 5
push str.RTSP_
push edi
call fcn.004f7f40
add esp, 0xc
test eax, eax
jne 0x4bb0b3
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0x4bb0a7
cmp byte [edi + 6], 0x2e
jne 0x4bb0a7
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0x4bb0a7
mov al, byte [edi + 8]
cmp al, 0x20
je 0x4bab5c
cmp al, 9
jne 0x4bb0a7
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x4bb0a7
mov dl, byte [edi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x4bb0a7
mov dh, byte [edi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x4bb0a7
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 + 0x60], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x4babbb
cmp al, 9
je 0x4babbb
sub al, 0xa
cmp al, 3
ja 0x4bb0a7
mov edi, dword [ebp + 0xc]
mov byte [edi + 0x330], 0xb
push edi
push ebx
call fcn.004bb4a0
add esp, 8
test eax, eax
jne 0x4ba8a2
mov dword [ebp - 8], 6
push ebx
call fcn.004bc170
add esp, 4
test eax, eax
jne 0x4ba8a2
push dword [ebp - 0xc]
push edi
push ebx
call fcn.004b9870
add esp, 0xc
test eax, eax
jne 0x4ba8a2
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 8]
push dword [ebp - 0x10]
mov edi, dword [esi + 0x60]
or ebx, 1
cmp byte [eax + 0x6cb], 0
cmove ebx, dword [ebp - 8]
call fcn.004a9320
push eax
push dword [ebp - 0xc]
push 1
push dword [ebp + 8]
call fcn.004b1aa0
push dword [ebp - 0x10]
call fcn.004a9320
push eax
push dword [ebp - 0xc]
mov ecx, ebx
lea eax, [edi - 0x64]
or ecx, 0x10
cmp eax, 0x64
cmovae ecx, ebx
mov ebx, dword [ebp + 8]
push ecx
push ebx
call fcn.004b1c70
add esp, 0x28
test eax, eax
jne 0x4ba8a2
lea edi, [ebx + 0x8a4]
push edi
call fcn.004a9320
add dword [ebx + 0xda8], eax
push edi
adc dword [ebx + 0xdac], 0
call fcn.004a9320
mov edi, dword [ebp + 0xc]
add esp, 8
add dword [ebx + 0xa0], eax
adc dword [ebx + 0xa4], 0
jmp 0x4bafbe
mov ecx, dword [esi + 0x60]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x4bad01
sub ecx, 0x64
je 0x4bacd5
sub ecx, 1
je 0x4bacbf
mov byte [esi + 0xc2], 1
mov dword [esi + 0x4c], 0
jmp 0x4bad5b
cmp dword [esi + 0x7c], 2
je 0x4bb0c3
mov byte [esi + 0xc2], 0
jmp 0x4bad5b
cmp dword [esi + 0x78], 0
mov byte [esi + 0xc2], 1
mov dword [esi + 0x4c], 0
jle 0x4bad5b
or dword [esi + 0x64], 2
push 0
push ebx
mov dword [esi + 0x78], 0
call fcn.004a3870
add esp, 8
jmp 0x4bad5b
mov eax, dword [esi]
xor cl, cl
and eax, dword [esi + 4]
mov byte [esi + 0xc2], 0
cmp eax, 0xffffffff
jne 0x4bad61
cmp byte [esi + 0xc7], cl
jne 0x4bad61
cmp byte [edi + 0x1c6], cl
jne 0x4bad61
cmp byte [edi + 0x330], 0xb
jne 0x4bad61
mov eax, dword [edi + 0x1e0]
test dword [eax + 0x44], 0x40000
jne 0x4bad61
cmp byte [ebx + 0xccc], 5
je 0x4bad61
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push ebx
call fcn.004b1bf0
push 2
push edi
call fcn.004b2810
add esp, 0x10
mov cl, byte [esi + 0xc2]
test cl, cl
jne 0x4bad76
push ebx
call fcn.004bb3d0
add esp, 4
test eax, eax
jne 0x4ba8a2
cmp byte [edi + 0x1c6], 0
je 0x4badbc
mov eax, dword [ebx + 0xe0]
cmp eax, 0x191
jne 0x4bad97
cmp dword [edi + 0x218], 2
je 0x4bada7
jmp 0x4badbc
cmp eax, 0x197
jne 0x4badbc
cmp dword [edi + 0x21c], 2
jne 0x4badbc
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push ebx
call fcn.004b1bf0
add esp, 8
mov byte [ebx + 0xd75], 1
mov eax, dword [esi + 0x60]
sub eax, 0x64
cmp eax, 0x64
sbb edi, edi
xor eax, eax
and edi, 0x10
cmp byte [ebx + 0x6cb], al
setne al
add eax, 2
or edi, eax
lea eax, [ebx + 0x8a4]
push eax
call fcn.004a9320
add esp, 4
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebx + 0x8a4]
push eax
call fcn.004a9330
add esp, 4
push eax
push edi
push ebx
call fcn.004b1c70
add esp, 0x10
test eax, eax
jne 0x4ba8a2
mov eax, dword [ebp - 0xc]
cdq
mov edi, eax
mov eax, edx
add dword [ebx + 0xda8], edi
push ebx
adc dword [ebx + 0xdac], eax
add edi, dword [ebx + 0xa0]
mov dword [ebx + 0xa0], edi
adc eax, dword [ebx + 0xa4]
mov dword [ebp - 0x14], eax
mov dword [ebx + 0xa4], eax
call fcn.004bbd40
add esp, 4
test al, al
mov eax, dword [esi + 0x60]
jne 0x4bb15a
add eax, 0xffffff9c
cmp eax, 0x63
ja 0x4bae5f
mov eax, dword [ebp - 0x14]
jmp 0x4bae6d
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push ebx
mov dword [ebx + 0xa8], edi
mov dword [ebx + 0xac], eax
call fcn.004b88a0
add esp, 4
test eax, eax
jne 0x4ba8a2
cmp dword [esi + 0x60], 0x12c
mov edi, dword [ebp + 0xc]
jl 0x4bafb1
cmp byte [edi + 0x1d0], al
jne 0x4baf8d
cmp byte [edi + 0x1c6], al
jne 0x4baf8d
cmp byte [ebx + 0xd83], al
jne 0x4baf96
mov al, byte [ebx + 0xccc]
dec al
cmp al, 3
ja 0x4baf8d
push 0
push ebx
call fcn.004a3870
add esp, 8
cmp byte [esi + 0xc4], 0
jne 0x4baf8d
cmp dword [esi + 0x60], 0x1a1
jne 0x4baf28
cmp byte [ebx + 0xd77], 0
je 0x4baf28
push str.Got_417_while_waiting_for_a_100
push ebx
call fcn.004b1bf0
push dword [ebx + 0xcd0]
mov byte [ebx + 0xd78], 1
call dword [0x5330bc]
push esi
push ebx
mov dword [ebx + 0x118], eax
call fcn.004bd140
add esp, 0x14
jmp 0x4baf8d
cmp byte [ebx + 0x6c7], 0
je 0x4baf52
push str.HTTP_error_before_end_of_send__keep_sending
push ebx
call fcn.004b1bf0
add esp, 8
cmp dword [esi + 0x78], 0
jle 0x4baf8d
or dword [esi + 0x64], 2
mov dword [esi + 0x78], 0
jmp 0x4baf8d
push str.HTTP_error_before_end_of_send__stop_sending
push ebx
call fcn.004b1bf0
push 2
push edi
call fcn.004b2810
push esi
push ebx
call fcn.004bd140
add esp, 0x18
test eax, eax
jne 0x4ba8a2
mov byte [esi + 0xc4], 1
cmp byte [ebx + 0xd77], al
je 0x4baf8d
mov dword [esi + 0x78], 3
cmp byte [ebx + 0xd83], 0
je 0x4bafb1
cmp dword [edi + 0x1fc], 0xffffffff
je 0x4bafb1
push str.Keep_sending_data_to_get_tossed_away
push ebx
call fcn.004b1bf0
add esp, 8
or dword [esi + 0x64], 2
cmp byte [esi + 0xc2], 0
je 0x4bb0f2
lea eax, [ebx + 0x8a4]
push eax
call fcn.004a9340
mov eax, dword [esi + 0x50]
add esp, 4
cmp byte [eax], 0
je 0x4ba8a0
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov eax, dword [eax]
push eax
push 0xa
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004e79f0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4bb178
mov edi, dword [ebp - 0x14]
jmp 0x4ba817
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x48], 2
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
pop edi
mov dword [esi + 0x50], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_version_in_response
push ebx
call fcn.004b1b30
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 ebx
call fcn.004b1b30
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 ebx
call fcn.004b1b30
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 ebx
call fcn.004b1b30
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 + 0xc2], 0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101__Switching_to_HTTP_2
push ebx
call fcn.004b1bf0
add esp, 8
mov dword [esi + 0x7c], 3
mov byte [esi + 0xc2], 1
mov eax, 1
mov dword [esi + 0x4c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x14c], 0
mov ecx, dword [ebp + 0x14]
jne 0x4bb123
mov eax, dword [edi + 0x1e0]
test dword [eax + 0x44], 0x40000
je 0x4bb126
cmp dword [ebx + 0x65c], 2
jne 0x4bb126
cmp dword [esi + 4], 0xffffffff
jg 0x4bb126
jl 0x4bb123
cmp dword [esi], 0xffffffff
ja 0x4bb126
mov byte [ecx], 1
cmp dword [esi + 8], 0
jne 0x4bb137
cmp dword [esi + 0xc], 0
jne 0x4bb137
mov byte [ecx], 1
jmp 0x4bb13c
cmp byte [ecx], 0
je 0x4bb140
and dword [esi + 0x64], 0xfffffffe
push dword [ebp - 0xc]
push dword [ebp - 8]
push 1
push ebx
call fcn.004b1aa0
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 ebx
call fcn.004b1b30
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 eax, [ebx + 0x8a4]
push dword [ebp - 8]
push eax
call fcn.004a92b0
add esp, 0xc
test eax, eax
jne 0x4ba8a2
cmp dword [esi + 0x4c], eax
jne 0x4ba8a0
lea eax, [ebx + 0x8a4]
push eax
call fcn.004a9320
add esp, 4
push eax
lea eax, [ebx + 0x8a4]
push eax
call fcn.004a9330
add esp, 4
push eax
push edi
push ebx
call fcn.004bb900
add esp, 0x10
cmp eax, 2
jne 0x4ba8a0
push eax
push edi
mov byte [esi + 0xc2], 0
mov dword [esi + 0x48], eax
call fcn.004b2810
add esp, 8
cmp byte [ebx + 0x6e9], 0
jne 0x4ba8a0
push str.Received_HTTP_0.9_when_not_allowed
push ebx
call fcn.004b1b30
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret