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

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov byte [esp + 0x20], 0
mov ebp, dword [esi + 0x18]
lea ebx, [esi + 0x88]
mov dword [ecx], 0
push eax
push 0xa
push dword [esp + 0x2c]
call fcn.10058680
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100376b3
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x858]
sub edi, ecx
inc edi
push edi
push ecx
push eax
call fcn.1001d120
add esp, 0xc
test eax, eax
jne 0x1003754f
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], edi
add dword [esp + 0x24], edi
add dword [eax], edi
cmp dword [ebx + 0x44], 0
jne 0x10036c62
lea eax, [esi + 0x858]
push eax
call fcn.100502d0
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.1001d180
push edi
push eax
push esi
call fcn.100366b0
add esp, 0x14
cmp eax, 2
je 0x10037557
lea eax, [esi + 0x858]
push eax
call fcn.1001d180
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x100370c6
cmp cl, 0xd
je 0x100370c6
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x18], 4
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
test ecx, ecx
jne 0x10036fdd
mov eax, dword [ebp + 0x1c4]
mov eax, dword [eax + 0x44]
test al, 3
je 0x10036ec9
mov al, byte [edx]
mov edi, edx
test al, al
je 0x10036cd0
nop dword [eax]
cmp al, 0x20
je 0x10036cc8
cmp al, 9
jne 0x10036cd0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10036cc0
push 5
push str.HTTP_
push edi
call fcn.10062670
add esp, 0xc
test eax, eax
jne 0x10036d84
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x10036dc3
sub al, 0x32
cmp al, 1
ja 0x1003757a
mov al, byte [edi + 6]
cmp al, 0x20
je 0x10036d0a
cmp al, 9
jne 0x10036d84
movsx eax, cl
mov cl, byte [edi + 7]
sub eax, 0x30
lea edx, [eax + eax*4]
add edx, edx
mov dword [esp + 0x18], edx
cmp cl, 0x30
jl 0x10036d84
cmp cl, 0x39
jg 0x10036d84
mov al, byte [edi + 8]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x10036d84
cmp al, 0x39
jg 0x10036d84
mov al, byte [edi + 9]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x10036d84
cmp al, 0x39
jg 0x10036d84
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x12]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x13]
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [ebx + 0x50], eax
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x10036e76
cmp al, 9
je 0x10036e76
cmp al, 0xa
jl 0x10036d84
cmp al, 0xd
jle 0x10036e76
lea edi, [esi + 0x858]
push edi
call fcn.100502d0
add esp, 4
push eax
push edi
call fcn.1001d180
add esp, 4
push eax
push esi
call fcn.100366b0
add esp, 0xc
cmp eax, 1
jne 0x10037604
mov dword [ebx + 0x50], 0xc8
mov byte [ebp + 0x384], 0xa
jmp 0x10036fc3
cmp byte [edi + 6], 0x2e
jne 0x100375e9
mov al, byte [edi + 7]
cmp al, 0x30
je 0x10036ddc
cmp al, 0x31
jne 0x100375e9
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x10036ded
cmp cl, 9
jne 0x100375e9
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [esp + 0x18], edx
cmp cl, 0x30
jl 0x100375e9
cmp cl, 0x39
jg 0x100375e9
mov al, byte [edi + 0xa]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x100375e9
cmp al, 0x39
jg 0x100375e9
mov al, byte [edi + 0xb]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x100375e9
cmp al, 0x39
jg 0x100375e9
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x13]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x12]
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [ebx + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x10036e76
cmp al, 9
je 0x10036e76
cmp al, 0xa
jl 0x100375e9
cmp al, 0xd
jg 0x100375e9
cmp dword [ebx + 0x50], 0x64
jl 0x100375ce
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x10037595
mov byte [ebp + 0x384], dl
cmp dword [ebx + 0x6c], 3
jne 0x10036eab
cmp dl, 0x14
je 0x10036eab
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.10028dd0
add esp, 8
cmp byte [ebp + 0x384], 0x14
jae 0x10036fc3
mov eax, dword [ebp + 0x354]
mov dword [eax], 0xffffffff
jmp 0x10036fc3
test eax, 0x40000
je 0x10037604
mov al, byte [edx]
mov edi, edx
test al, al
je 0x10036ef0
nop dword [eax]
cmp al, 0x20
je 0x10036ee8
cmp al, 9
jne 0x10036ef0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10036ee0
push 5
push str.RTSP_
push edi
call fcn.10062670
add esp, 0xc
test eax, eax
jne 0x10037604
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x1003761e
cmp al, 0x39
jg 0x1003761e
cmp byte [edi + 6], 0x2e
jne 0x1003761e
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x1003761e
cmp al, 0x39
jg 0x1003761e
mov al, byte [edi + 8]
cmp al, 0x20
je 0x10036f47
cmp al, 9
jne 0x1003761e
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x1003761e
cmp al, 0x39
jg 0x1003761e
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x1003761e
cmp dh, 0x39
jg 0x1003761e
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x1003761e
cmp dl, 0x39
jg 0x1003761e
movsx eax, al
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 + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x10036fbc
cmp al, 9
je 0x10036fbc
cmp al, 0xa
jl 0x1003761e
cmp al, 0xd
jg 0x1003761e
mov byte [ebp + 0x384], 0xb
push ebp
push esi
call fcn.10036230
add esp, 8
test eax, eax
jne 0x1003754f
mov dword [esp + 0x18], 0xc
push esi
call fcn.10037b60
add esp, 4
test eax, eax
jne 0x1003754f
push dword [esp + 0x14]
push ebp
push esi
call fcn.10034d50
add esp, 0xc
test eax, eax
jne 0x1003754f
mov edi, dword [ebx + 0x50]
lea eax, [esi + 0x858]
push eax
sub edi, 0x64
call fcn.100502d0
push eax
push dword [esp + 0x1c]
push 1
push esi
call fcn.10028c70
lea eax, [esi + 0x858]
push eax
call fcn.100502d0
push eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x30]
or eax, 0x20
cmp edi, 0x64
cmovae eax, dword [esp + 0x38]
push eax
push esi
call fcn.10029260
add esp, 0x28
test eax, eax
jne 0x1003754f
lea eax, [esi + 0x858]
push eax
call fcn.100502d0
mov ecx, eax
mov edi, 0x4b000
add esp, 4
cmp ecx, edi
jae 0x100370a2
add dword [esi + 0xc4], ecx
add dword [esi + 0xd50], ecx
mov eax, dword [esi + 0xc4]
add dword [esi + 0xc0], ecx
mov edx, dword [esi + 0xd50]
cmp eax, edi
ja 0x100370aa
cmp edx, 0x5dc000
jbe 0x100370b2
mov eax, edx
mov edi, 0x5dc000
jmp 0x100370aa
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x10037696
lea eax, [esi + 0x858]
push eax
call fcn.1001d190
add esp, 4
jmp 0x10037521
mov eax, dword [ebx + 0x50]
mov byte [esp + 0x12], 0
cmp eax, 0x64
jl 0x1003717b
cmp eax, 0xc7
jg 0x1003717b
sub eax, 0x64
je 0x1003714b
sub eax, 1
je 0x100370ff
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jmp 0x100371e6
cmp byte [ebp + 0x384], 0xb
jne 0x10037610
cmp dword [ebx + 0x6c], 2
jne 0x1003713f
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.10028dd0
add esp, 8
mov dword [ebx + 0x6c], 3
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
mov byte [esp + 0x12], 1
jmp 0x100371e6
mov byte [ebx + 0xb3], 0
jmp 0x100371e6
cmp dword [ebx + 0x68], 0
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jle 0x100371e6
or dword [ebx + 0x54], 2
push 0
push esi
mov dword [ebx + 0x68], 0
call fcn.10017a00
add esp, 8
jmp 0x100371e6
cmp dword [ebx + 0x6c], 2
jne 0x1003718c
push dword [esi + 0x7c]
call fcn.10017b20
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xb3], 0
cmp eax, 0xffffffff
jne 0x100371e6
cmp byte [ebx + 0xba], 0
jne 0x100371e6
cmp byte [ebp + 0x1ae], 0
jne 0x100371e6
cmp byte [ebp + 0x384], 0xb
jne 0x100371e6
mov eax, dword [ebp + 0x1c4]
test dword [eax + 0x44], 0x40000
jne 0x100371e6
cmp byte [esi + 0xcf2], 5
je 0x100371e6
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.10028dd0
push 2
push ebp
call fcn.1002a170
add esp, 0x10
cmp byte [ebx + 0xb3], 0
jne 0x10037200
push esi
call fcn.10036170
add esp, 4
test eax, eax
jne 0x1003754f
cmp byte [ebp + 0x1ae], 0
je 0x10037288
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1003721f
cmp dword [ebp + 0x238], 2
je 0x1003722f
cmp eax, 0x197
jne 0x10037244
cmp dword [ebp + 0x23c], 2
jne 0x10037244
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.10028dd0
add esp, 8
mov byte [esi + 0xcf9], 1
cmp byte [ebp + 0x1ae], 0
je 0x10037288
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x10037263
cmp dword [ebp + 0x2c0], 1
je 0x10037273
cmp eax, 0x197
jne 0x10037288
cmp dword [ebp + 0x2c4], 1
jne 0x10037288
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.10028dd0
add esp, 8
mov byte [esi + 0xcf9], 1
cmp dword [ebp + 0x2c0], 3
jne 0x100372a7
cmp dword [esi + 0xd8], 0x191
je 0x100372a7
mov dword [ebp + 0x2c0], 4
cmp dword [ebp + 0x2c4], 3
jne 0x100372c6
cmp dword [esi + 0xd8], 0x197
je 0x100372c6
mov dword [ebp + 0x2c4], 4
mov eax, dword [ebx + 0x50]
sub eax, 0x64
cmp eax, 0x64
lea eax, [esi + 0x858]
push eax
sbb edi, edi
and edi, 0x20
add edi, 4
call fcn.100502d0
add esp, 4
mov dword [esp + 0x18], eax
push eax
lea eax, [esi + 0x858]
push eax
call fcn.1001d180
add esp, 4
push eax
push edi
push esi
call fcn.10029260
add esp, 0x10
test eax, eax
jne 0x1003754f
mov ecx, dword [esp + 0x18]
mov edi, 0x4b000
cmp ecx, edi
jae 0x1003734d
add dword [esi + 0xc4], ecx
add dword [esi + 0xd50], ecx
mov eax, dword [esi + 0xc4]
add dword [esi + 0xc0], ecx
mov edx, dword [esi + 0xd50]
cmp eax, edi
ja 0x10037355
cmp edx, 0x5dc000
jbe 0x1003735d
mov eax, edx
mov edi, 0x5dc000
jmp 0x10037355
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x10037696
push esi
call fcn.10037750
add esp, 4
test al, al
jne 0x10037678
mov eax, dword [ebx + 0x50]
cmp eax, 0x64
jl 0x10037385
cmp eax, 0xc7
jg 0x10037385
mov eax, dword [esi + 0xc0]
jmp 0x10037387
xor eax, eax
push esi
mov dword [esi + 0xc8], eax
call fcn.10033e10
add esp, 4
test eax, eax
jne 0x1003754f
cmp dword [ebx + 0x50], 0x12c
jl 0x100374fa
cmp byte [ebp + 0x1b8], al
jne 0x100374d6
cmp byte [ebp + 0x1ae], al
jne 0x100374d6
cmp byte [esi + 0xd06], al
jne 0x100374df
mov al, byte [esi + 0xcf2]
dec al
cmp al, 3
ja 0x100374d6
push 0
push esi
call fcn.10017a00
add esp, 8
cmp byte [ebx + 0xb7], 0
jne 0x100374d6
cmp dword [ebx + 0x50], 0x1a1
jne 0x10037471
cmp byte [esi + 0xcfb], 0
je 0x10037471
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x10037427
cmp dword [ebx + 0x68], 1
jne 0x10037427
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push esi
call fcn.10028dd0
add esp, 8
jmp 0x1003744c
push str.Got_HTTP_failure_417_while_sending_data
push esi
call fcn.10028dd0
push 2
push ebp
call fcn.1002a170
push ebp
push esi
call fcn.100369a0
add esp, 0x18
test eax, eax
jne 0x1003754f
push dword [esi + 0xc44]
mov byte [esi + 0xcfc], 1
call dword [0x102e900c]
push ebx
push esi
mov dword [esi + 0x110], eax
call fcn.1002d850
add esp, 0xc
jmp 0x100374d6
cmp byte [esi + 0x66b], 0
je 0x1003749b
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.10028dd0
add esp, 8
cmp dword [ebx + 0x68], 0
jle 0x100374d6
or dword [ebx + 0x54], 2
mov dword [ebx + 0x68], 0
jmp 0x100374d6
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.10028dd0
push 2
push ebp
call fcn.1002a170
push ebx
push esi
call fcn.1002d850
add esp, 0x18
test eax, eax
jne 0x1003754f
mov byte [ebx + 0xb7], 1
cmp byte [esi + 0xcfb], al
je 0x100374d6
mov dword [ebx + 0x68], 3
cmp byte [esi + 0xd06], 0
je 0x100374fa
cmp dword [ebp + 0x1e4], 0xffffffff
je 0x100374fa
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.10028dd0
add esp, 8
or dword [ebx + 0x54], 2
cmp byte [ebx + 0xb3], 0
je 0x1003762b
lea eax, [esi + 0x858]
push eax
call fcn.1001d190
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x1003773a
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10036be7
mov al, byte [esp + 0x20]
cmp byte [ebx + 0xb3], 0
jne 0x1003754d
test al, al
jne 0x1003754d
add esi, 0x858
push esi
call fcn.1001d130
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 2
push ebp
call fcn.1002a170
add esp, 8
cmp byte [esi + 0x68d], 0
je 0x1003772c
mov byte [ebx + 0xb3], 0
mov al, 1
jmp 0x10037531
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.10028d00
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, 0x66666667
imul edx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x18]
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.10028d00
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.Unsupported_response_code_in_HTTP_response
push esi
call fcn.10028d00
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.Unsupported_HTTP_1_subversion_in_response
push esi
call fcn.10028d00
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov byte [ebx + 0xb3], 0
jmp 0x1003752d
push str.unexpected_101_response_code
push esi
call fcn.10028d00
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xc
ret
cmp byte [esi + 0x147], 0
je 0x1003763b
mov byte [ebx + 0xb5], 1
cmp dword [ebx + 8], 0
jne 0x1003764e
cmp dword [ebx + 0xc], 0
jne 0x1003764e
mov byte [ebx + 0xb5], 1
lea edi, [esi + 0x858]
push edi
call fcn.100502d0
add esp, 4
push eax
push edi
call fcn.1001d180
add esp, 4
push eax
push 1
push esi
call fcn.10028c70
add esp, 0x10
jmp 0x1003752d
push dword [ebx + 0x50]
push str.The_requested_URL_returned_error:__d
push esi
call fcn.10028d00
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push eax
push str.Too_large_response_headers:__zu____u
push esi
call fcn.10028d00
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esp + 0x28]
lea edi, [esi + 0x858]
push dword [esp + 0x28]
push edi
call fcn.1001d120
add esp, 0xc
test eax, eax
jne 0x1003754f
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add dword [ecx], eax
cmp dword [ebx + 0x44], 0
jne 0x1003752d
push edi
call fcn.100502d0
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.1001d180
push edi
push eax
push esi
call fcn.100366b0
add esp, 0x14
cmp eax, 2
jne 0x1003752d
push eax
push ebp
mov byte [ebx + 0xb3], 0
call fcn.1002a170
add esp, 8
cmp byte [esi + 0x68d], 0
jne 0x10037576
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.10028d00
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret