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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov ebx, dword [edi + 0xd0]
lea ebp, [edi + 0x80]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
lea esp, [esp]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push eax
push 0xa
push ebx
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
lea esi, [edi + 0x9bc]
test eax, eax
je 0x1003b425
mov edx, dword [ebp + 0x50]
mov ecx, dword [esp + 0x2c]
sub edx, eax
dec edx
add dword [ecx], edx
inc eax
mov dword [ebp + 0x50], eax
sub eax, ebx
push eax
push ebx
push esi
call fcn.10020840
add esp, 0xc
test eax, eax
jne 0x1003b638
cmp dword [ebp + 0x4c], eax
jne 0x1003abbc
push esi
call fcn.100508f0
push esi
mov ebx, eax
call fcn.100208d0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x254]
add esp, 8
test dword [edx + 0x44], 0x40000
je 0x1003aba8
cmp ebx, 5
sbb ecx, ecx
inc ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0x24], ecx
cmp ebx, 5
jbe 0x1003ab8b
mov ebx, 5
push ebx
push eax
push str.RTSP_
call fcn.10013d00
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x24]
jne 0x1003abb3
mov eax, dword [esp + 0x10]
jmp 0x1003abb3
push eax
mov eax, edi
call fcn.10039ca0
add esp, 4
cmp eax, 2
je 0x1003b4ae
push esi
call fcn.100208d0
mov esi, eax
mov al, byte [esi]
add esp, 4
mov dword [esp + 0x10], esi
cmp al, 0xa
je 0x1003afe1
cmp al, 0xd
je 0x1003afe1
mov eax, dword [ebp + 0x4c]
lea ecx, [eax + 1]
mov dword [esp + 0x24], 2
mov dword [ebp + 0x4c], ecx
test eax, eax
jne 0x1003af27
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x254]
mov eax, dword [eax + 0x44]
test al, 3
je 0x1003ae0b
mov al, byte [esi]
test al, al
je 0x1003ac21
cmp al, 0x20
je 0x1003ac19
cmp al, 9
jne 0x1003ac21
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1003ac11
push 5
push str.HTTP_
push esi
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1003acc9
mov al, byte [esi + 5]
cmp al, 0x31
je 0x1003ad0a
lea ecx, [eax - 0x32]
cmp cl, 1
ja 0x1003b508
mov cl, byte [esi + 6]
cmp cl, 0x20
je 0x1003ac5e
cmp cl, 9
jne 0x1003acc9
movsx eax, al
sub eax, 0x30
lea ecx, [eax + eax*4]
mov al, byte [esi + 7]
add ecx, ecx
cmp al, 0x30
jl 0x1003acc9
cmp al, 0x39
jg 0x1003acc9
mov bl, byte [esi + 8]
cmp bl, 0x30
jl 0x1003acc9
cmp bl, 0x39
jg 0x1003acc9
mov dl, byte [esi + 9]
cmp dl, 0x30
jl 0x1003acc9
cmp dl, 0x39
jg 0x1003acc9
movsx eax, al
lea eax, [eax + eax*4]
movsx ebx, bl
lea eax, [ebx + eax*2]
movsx edx, dl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x14d0]
mov dword [ebp + 0x60], eax
mov al, byte [esi + 0xa]
cmp al, 0x20
je 0x1003adae
cmp al, 9
je 0x1003adae
cmp al, 0xa
jl 0x1003acc9
cmp al, 0xd
jle 0x1003adae
lea esi, [edi + 0x9bc]
push esi
call fcn.100508f0
push esi
mov ebx, eax
call fcn.100208d0
push eax
mov eax, edi
call fcn.10039ca0
add esp, 0xc
cmp eax, 1
jne 0x1003b59b
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x60], 0xc8
mov byte [edx + 0x4f9], 0xa
mov esi, edx
jmp 0x1003af09
cmp byte [esi + 6], 0x2e
jne 0x1003b523
mov al, byte [esi + 7]
cmp al, 0x30
je 0x1003ad23
cmp al, 0x31
jne 0x1003b523
mov cl, byte [esi + 8]
cmp cl, 0x20
je 0x1003ad34
cmp cl, 9
jne 0x1003b523
movsx ecx, al
mov al, byte [esi + 9]
sub ecx, 0x26
cmp al, 0x30
jl 0x1003b523
cmp al, 0x39
jg 0x1003b523
mov bl, byte [esi + 0xa]
cmp bl, 0x30
jl 0x1003b523
cmp bl, 0x39
jg 0x1003b523
mov dl, byte [esi + 0xb]
cmp dl, 0x30
jl 0x1003b523
cmp dl, 0x39
jg 0x1003b523
movsx eax, al
lea eax, [eax + eax*4]
movsx ebx, bl
lea eax, [ebx + eax*2]
movsx edx, dl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x14d0]
mov dword [ebp + 0x60], eax
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x1003adae
cmp al, 9
je 0x1003adae
cmp al, 0xa
jl 0x1003b523
cmp al, 0xd
jg 0x1003b523
cmp dword [ebp + 0x60], 0x64
jl 0x1003b53e
cmp ecx, 0xa
jl 0x1003b559
cmp ecx, 0xb
jg 0x1003b559
mov esi, dword [esp + 0x28]
mov byte [esi + 0x4f9], cl
cmp dword [ebp + 0x7c], 3
jne 0x1003aded
cmp cl, 0x14
je 0x1003aded
push str.Lying_server__not_serving_HTTP_2
push edi
call fcn.1001ccc0
add esp, 8
cmp byte [esi + 0x4f9], 0x14
jae 0x1003af09
mov ecx, dword [esi + 0x4c8]
mov dword [ecx], 0xffffffff
jmp 0x1003af09
test eax, 0x40000
je 0x1003b59b
mov esi, dword [esp + 0x10]
mov al, byte [esi]
test al, al
je 0x1003ae30
cmp al, 0x20
je 0x1003ae28
cmp al, 9
jne 0x1003ae30
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1003ae20
push 5
push str.RTSP_
push esi
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1003b59b
mov al, byte [esi + 5]
cmp al, 0x30
jl 0x1003b58e
cmp al, 0x39
jg 0x1003b58e
cmp byte [esi + 6], 0x2e
jne 0x1003b58e
mov al, byte [esi + 7]
cmp al, 0x30
jl 0x1003b58e
cmp al, 0x39
jg 0x1003b58e
mov al, byte [esi + 8]
cmp al, 0x20
je 0x1003ae88
cmp al, 9
jne 0x1003b58e
mov al, byte [esi + 9]
cmp al, 0x30
jl 0x1003b58e
cmp al, 0x39
jg 0x1003b58e
mov dl, byte [esi + 0xa]
cmp dl, 0x30
jl 0x1003b58e
cmp dl, 0x39
jg 0x1003b58e
mov cl, byte [esi + 0xb]
cmp cl, 0x30
jl 0x1003b58e
cmp cl, 0x39
jg 0x1003b58e
movsx eax, al
movsx edx, dl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2]
movsx ecx, cl
lea eax, [eax + eax*4]
lea edx, [ecx + eax*2 - 0x14d0]
mov dword [ebp + 0x60], edx
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x1003aefc
cmp al, 9
je 0x1003aefc
cmp al, 0xa
jl 0x1003b58e
cmp al, 0xd
jg 0x1003b58e
mov eax, dword [esp + 0x28]
mov byte [eax + 0x4f9], 0xb
mov esi, eax
push esi
push edi
call fcn.1003a650
add esp, 8
test eax, eax
jne 0x1003b638
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], 6
mov ebx, edi
call fcn.1003a820
test eax, eax
jne 0x1003b638
mov ecx, dword [esp + 0x28]
push esi
push ecx
push edi
call fcn.10039db0
add esp, 0xc
test eax, eax
jne 0x1003b638
cmp dword [edi + 0x780], eax
je 0x1003af5a
or dword [esp + 0x24], 1
mov eax, 0x51eb851f
imul dword [ebp + 0x60]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x1003af76
or dword [esp + 0x24], 0x10
lea ebx, [edi + 0x9bc]
push ebx
call fcn.100508f0
push eax
push esi
push 1
push edi
call fcn.1001cae0
push ebx
call fcn.100508f0
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ecx
push edi
call fcn.10020e80
add esp, 0x28
test eax, eax
jne 0x1003b638
push ebx
call fcn.100508f0
add dword [edi + 0xef0], eax
mov esi, 0
push ebx
adc dword [edi + 0xef4], esi
call fcn.100508f0
add dword [edi + 0xa0], eax
push ebx
adc dword [edi + 0xa4], esi
call fcn.100207c0
add esp, 0xc
jmp 0x1003b3dc
mov eax, dword [ebp + 0x60]
cmp eax, 0x64
jl 0x1003b1fb
cmp eax, 0xc7
jg 0x1003b1fb
sub eax, 0x64
je 0x1003b1cd
dec eax
je 0x1003b1b6
xor ebx, ebx
mov dword [ebp + 0xc4], 1
mov dword [ebp + 0x4c], ebx
mov esi, dword [esp + 0x28]
cmp dword [ebp + 0xc4], ebx
jne 0x1003b034
push edi
call fcn.1003a770
add esp, 4
cmp eax, ebx
jne 0x1003b638
cmp dword [esi + 0x1f0], ebx
je 0x1003b0c4
mov eax, dword [edi + 0xe0]
cmp eax, 0x191
jne 0x1003b056
cmp dword [esi + 0x2c8], 2
je 0x1003b066
cmp eax, 0x197
jne 0x1003b07e
cmp dword [esi + 0x2cc], 2
jne 0x1003b07e
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push edi
call fcn.1001ccc0
add esp, 8
mov dword [edi + 0xe8c], 1
cmp dword [esi + 0x1f0], ebx
je 0x1003b0c4
mov eax, dword [edi + 0xe0]
cmp eax, 0x191
jne 0x1003b09c
cmp dword [esi + 0x350], 1
je 0x1003b0ac
cmp eax, 0x197
jne 0x1003b0c4
cmp dword [esi + 0x354], 1
jne 0x1003b0c4
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push edi
call fcn.1001ccc0
add esp, 8
mov dword [edi + 0xe8c], 1
mov eax, 3
cmp dword [esi + 0x350], eax
jne 0x1003b0e7
cmp dword [edi + 0xe0], 0x191
je 0x1003b0e7
mov dword [esi + 0x350], 4
cmp dword [esi + 0x354], eax
jne 0x1003b105
cmp dword [edi + 0xe0], 0x197
je 0x1003b105
mov dword [esi + 0x354], 4
xor ecx, ecx
cmp dword [edi + 0x780], ecx
mov eax, 0x51eb851f
setne cl
imul dword [ebp + 0x60]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff0
lea esi, [eax + 0x10]
or esi, ecx
lea ebx, [edi + 0x9bc]
push ebx
or esi, 2
call fcn.100508f0
add esp, 4
push eax
push ebx
mov dword [esp + 0x2c], eax
call fcn.100208d0
add esp, 4
push eax
push esi
push edi
call fcn.10020e80
add esp, 0x10
test eax, eax
jne 0x1003b638
mov eax, dword [esp + 0x24]
cdq
add dword [edi + 0xef0], eax
adc dword [edi + 0xef4], edx
add dword [edi + 0xa0], eax
mov eax, edi
adc dword [edi + 0xa4], edx
call fcn.100374b0
test eax, eax
mov eax, dword [ebp + 0x60]
jne 0x1003b5af
cmp eax, 0x64
jl 0x1003b276
cmp eax, 0xc7
jg 0x1003b276
mov eax, dword [edi + 0xa0]
mov ecx, dword [edi + 0xa4]
jmp 0x1003b27a
cmp dword [ebp + 0x7c], 2
je 0x1003b3f6
xor ebx, ebx
mov dword [ebp + 0xc4], ebx
jmp 0x1003b017
xor ebx, ebx
mov dword [ebp + 0xc4], 1
mov dword [ebp + 0x4c], ebx
cmp dword [ebp + 0x78], ebx
jle 0x1003b017
or dword [ebp + 0x64], 2
push ebx
push edi
mov dword [ebp + 0x78], ebx
call fcn.1001dee0
add esp, 8
jmp 0x1003b017
mov edx, dword [ebp]
and edx, dword [ebp + 4]
xor ebx, ebx
mov dword [ebp + 0xc4], ebx
cmp edx, 0xffffffff
jne 0x1003b017
cmp dword [ebp + 0xd8], ebx
jne 0x1003b017
mov esi, dword [esp + 0x28]
cmp dword [esi + 0x1f0], ebx
jne 0x1003b01b
cmp byte [esi + 0x4f9], 0xb
jne 0x1003b01b
mov eax, dword [esi + 0x254]
test dword [eax + 0x44], 0x40000
jne 0x1003b01b
cmp byte [edi + 0xe76], 5
je 0x1003b01b
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push edi
call fcn.1001ccc0
push 2
push esi
call fcn.10021ed0
add esp, 0x10
jmp 0x1003b01b
xor eax, eax
xor ecx, ecx
push edi
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], ecx
call fcn.1003a8b0
add esp, 4
test eax, eax
jne 0x1003b638
cmp dword [ebp + 0x60], 0x12c
mov esi, dword [esp + 0x28]
jl 0x1003b3c6
cmp dword [esi + 0x218], eax
jne 0x1003b3a2
cmp dword [esi + 0x1f0], eax
jne 0x1003b3a2
cmp dword [edi + 0xec4], eax
jne 0x1003b3ab
mov al, byte [edi + 0xe76]
dec al
cmp al, 3
ja 0x1003b3a2
push 0
push edi
call fcn.1001dee0
add esp, 8
cmp dword [ebp + 0xcc], 0
jne 0x1003b3a2
cmp dword [ebp + 0x60], 0x1a1
jne 0x1003b33a
cmp dword [edi + 0xe94], 0
je 0x1003b33a
push str.Got_417_while_waiting_for_a_100
push edi
call fcn.1001ccc0
mov ecx, dword [edi + 0xdd4]
push ecx
mov dword [edi + 0xe98], 1
call dword [0x100a300c]
push ebp
push edi
mov dword [edi + 0x118], eax
call fcn.10043ed0
add esp, 0x14
jmp 0x1003b3a2
cmp dword [edi + 0x770], 0
je 0x1003b364
push str.HTTP_error_before_end_of_send__keep_sending
push edi
call fcn.1001ccc0
add esp, 8
cmp dword [ebp + 0x78], 0
jle 0x1003b3a2
or dword [ebp + 0x64], 2
mov dword [ebp + 0x78], 0
jmp 0x1003b3a2
push str.HTTP_error_before_end_of_send__stop_sending
push edi
call fcn.1001ccc0
push 2
push esi
call fcn.10021ed0
push ebp
push edi
call fcn.10043ed0
add esp, 0x18
test eax, eax
jne 0x1003b638
mov dword [ebp + 0xcc], 1
cmp dword [edi + 0xe94], eax
je 0x1003b3a2
mov dword [ebp + 0x78], 3
cmp dword [edi + 0xec4], 0
je 0x1003b3c6
cmp dword [esi + 0x274], 0xffffffff
je 0x1003b3c6
push str.Keep_sending_data_to_get_tossed_away
push edi
call fcn.1001ccc0
add esp, 8
or dword [ebp + 0x64], 2
cmp dword [ebp + 0xc4], 0
je 0x1003b5cb
push ebx
call fcn.100207c0
add esp, 4
mov ebx, dword [ebp + 0x50]
cmp byte [ebx], 0
mov dword [esp + 0x14], ebx
jne 0x1003ab00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push str.Received_101__Switching_to_HTTP_2
push edi
call fcn.1001ccc0
add esp, 8
pop edi
mov eax, 1
pop esi
mov dword [ebp + 0x7c], 3
mov dword [ebp + 0xc4], eax
mov dword [ebp + 0x4c], 0
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push eax
push ebx
push esi
call fcn.10020840
add esp, 0xc
test eax, eax
jne 0x1003b638
cmp dword [ebp + 0x4c], eax
jne 0x1003b636
push esi
call fcn.100508f0
push esi
mov ebx, eax
call fcn.100208d0
mov esi, dword [esp + 0x30]
push edi
mov edx, ebx
mov ecx, esi
call fcn.10039d50
add esp, 0xc
cmp eax, 2
jne 0x1003b636
push eax
push esi
mov dword [ebp + 0xc4], 0
mov dword [ebp + 0x48], eax
call fcn.10021ed0
add esp, 8
cmp dword [edi + 0x7f8], 0
jne 0x1003b636
push str.Received_HTTP_0.9_when_not_allowed
push edi
call fcn.1001cb80
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x28]
push 2
push ecx
call fcn.10021ed0
add esp, 8
cmp dword [edi + 0x7f8], 0
je 0x1003b493
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0xc4], 0
cmp dword [eax], 0
je 0x1003b4ea
pop edi
pop esi
mov dword [ebp + 0x48], 1
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x48], 2
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ebp + 0x50], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push str.Unsupported_HTTP_version_in_response
push edi
call fcn.1001cb80
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
push str.Unsupported_HTTP_1_subversion_in_response
push edi
call fcn.1001cb80
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
push str.Unsupported_response_code_in_HTTP_response
push edi
call fcn.1001cb80
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
sub ecx, edx
push ecx
push eax
push str.Unsupported_HTTP_version___u._d__in_response
push edi
call fcn.1001cb80
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x10
ret
pop edi
pop esi
mov dword [ebp + 0xc4], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push eax
push str.The_requested_URL_returned_error:__d
push edi
call fcn.1001cb80
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
add esp, 0x10
ret
cmp dword [edi + 0x16c], 0
mov eax, dword [esp + 0x30]
jne 0x1003b5fe
mov ecx, dword [esi + 0x254]
test dword [ecx + 0x44], 0x40000
je 0x1003b604
cmp dword [edi + 0x6c4], 2
jne 0x1003b604
cmp dword [ebp + 4], 0xffffffff
jg 0x1003b604
jl 0x1003b5fe
cmp dword [ebp], 0xffffffff
ja 0x1003b604
mov dword [eax], 1
cmp dword [ebp + 8], 0
jne 0x1003b618
cmp dword [ebp + 0xc], 0
jne 0x1003b618
mov dword [eax], 1
jmp 0x1003b61d
cmp dword [eax], 0
je 0x1003b621
and dword [ebp + 0x64], 0xfffffffe
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push edx
push eax
push 1
push edi
call fcn.1001cae0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret