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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov byte [ebp + 0xb], 0
mov edi, dword [ebx + 0x18]
lea esi, [ebx + 0x88]
mov dword [ebp - 8], edi
mov dword [ecx], 0
push eax
push 0xa
push dword [ebp + 0xc]
call fcn.004d7890
add esp, 0xc
test eax, eax
je 0x49e718
mov edx, dword [ebp + 0xc]
lea ecx, [ebx + 0x8a8]
sub eax, edx
inc eax
push eax
push edx
push ecx
mov dword [ebp - 0x10], eax
call fcn.00488470
add esp, 0xc
test eax, eax
jne 0x49e68d
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
sub dword [ebp + 0x10], eax
add dword [ebp + 0xc], eax
add dword [ecx], eax
cmp dword [esi + 0x44], 0
jne 0x49ddf7
lea eax, [ebx + 0x8a8]
push eax
call fcn.004884e0
add esp, 4
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.004885a0
add esp, 4
push eax
push edi
push ebx
call fcn.0049d8e0
add esp, 0x10
cmp eax, 2
je 0x49e5ba
lea eax, [ebx + 0x8a8]
push eax
call fcn.004885a0
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x49e20a
cmp cl, 0xd
je 0x49e20a
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x10], 4
lea eax, [ecx + 1]
mov dword [esi + 0x44], eax
test ecx, ecx
jne 0x49e167
mov eax, dword [edi + 0x1c8]
mov eax, dword [eax + 0x44]
test al, 3
je 0x49e055
mov al, byte [edx]
mov edi, edx
test al, al
je 0x49de60
cmp al, 0x20
je 0x49de58
cmp al, 9
jne 0x49de60
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49de50
push 5
push str.HTTP_
push edi
call fcn.005188e0
add esp, 0xc
test eax, eax
jne 0x49df0f
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x49df51
sub al, 0x32
cmp al, 1
ja 0x49e5e0
mov al, byte [edi + 6]
cmp al, 0x20
je 0x49de9a
cmp al, 9
jne 0x49df0f
movsx eax, cl
mov cl, byte [edi + 7]
sub eax, 0x30
lea edx, [eax + eax*4]
add edx, edx
mov dword [ebp - 0x10], edx
cmp cl, 0x30
jl 0x49df0f
cmp cl, 0x39
jg 0x49df0f
mov al, byte [edi + 8]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0x49df0f
cmp al, 0x39
jg 0x49df0f
mov al, byte [edi + 9]
mov byte [ebp - 2], al
cmp al, 0x30
jl 0x49df0f
cmp al, 0x39
jg 0x49df0f
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 eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [esi + 0x50], eax
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x49dfff
cmp al, 9
je 0x49dfff
cmp al, 0xa
jl 0x49df0f
cmp al, 0xd
jle 0x49dfff
lea edi, [ebx + 0x8a8]
push edi
call fcn.004884e0
add esp, 4
push eax
push edi
call fcn.004885a0
add esp, 4
push eax
push ebx
call fcn.0049d820
add esp, 0xc
cmp eax, 1
jne 0x49e665
mov edi, dword [ebp - 8]
mov dword [esi + 0x50], 0xc8
mov byte [edi + 0x314], 0xa
jmp 0x49e14e
cmp byte [edi + 6], 0x2e
jne 0x49e64b
mov al, byte [edi + 7]
cmp al, 0x30
je 0x49df6a
cmp al, 0x31
jne 0x49e64b
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x49df7b
cmp cl, 9
jne 0x49e64b
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [ebp - 0x10], edx
cmp cl, 0x30
jl 0x49e64b
cmp cl, 0x39
jg 0x49e64b
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
cmp al, 0x30
jl 0x49e64b
cmp al, 0x39
jg 0x49e64b
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0x49e64b
cmp al, 0x39
jg 0x49e64b
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 eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [esi + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x49dfff
cmp al, 9
je 0x49dfff
cmp al, 0xa
jl 0x49e64b
cmp al, 0xd
jg 0x49e64b
cmp dword [esi + 0x50], 0x64
jl 0x49e631
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x49e5fa
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], dl
cmp dword [esi + 0x6c], 3
jne 0x49e037
cmp dl, 0x14
je 0x49e037
push str.Lying_server__not_serving_HTTP_2
push ebx
call fcn.00491e70
add esp, 8
cmp byte [edi + 0x314], 0x14
jae 0x49e14e
mov eax, dword [edi + 0x2e8]
mov dword [eax], 0xffffffff
jmp 0x49e14e
test eax, 0x40000
je 0x49e665
mov al, byte [edx]
mov edi, edx
test al, al
je 0x49e078
cmp al, 0x20
je 0x49e070
cmp al, 9
jne 0x49e078
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49e068
push 5
push str.RTSP_
push edi
call fcn.005188e0
add esp, 0xc
test eax, eax
jne 0x49e665
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x49e6a2
cmp al, 0x39
jg 0x49e6a2
cmp byte [edi + 6], 0x2e
jne 0x49e6a2
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x49e6a2
cmp al, 0x39
jg 0x49e6a2
mov al, byte [edi + 8]
cmp al, 0x20
je 0x49e0cf
cmp al, 9
jne 0x49e6a2
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x49e6a2
cmp al, 0x39
jg 0x49e6a2
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x49e6a2
cmp dh, 0x39
jg 0x49e6a2
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x49e6a2
cmp dl, 0x39
jg 0x49e6a2
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 [esi + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x49e144
cmp al, 9
je 0x49e144
cmp al, 0xa
jl 0x49e6a2
cmp al, 0xd
jg 0x49e6a2
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], 0xb
push edi
push ebx
call fcn.0049d340
add esp, 8
test eax, eax
jne 0x49e68d
mov dword [ebp - 0x10], 0xc
push ebx
call fcn.0049ec00
add esp, 4
test eax, eax
jne 0x49e68d
push dword [ebp - 0xc]
push edi
push ebx
call fcn.0049bfb0
add esp, 0xc
test eax, eax
jne 0x49e68d
mov edi, dword [esi + 0x50]
lea eax, [ebx + 0x8a8]
push eax
sub edi, 0x64
call fcn.004884e0
push eax
push dword [ebp - 0xc]
push 1
push ebx
call fcn.00491d20
lea eax, [ebx + 0x8a8]
push eax
call fcn.004884e0
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0xc]
or eax, 0x20
cmp edi, 0x64
cmovae eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.004922d0
add esp, 0x28
test eax, eax
jne 0x49e68d
push eax
lea edi, [ebx + 0x8a8]
push edi
call fcn.004884e0
add esp, 4
push eax
push ebx
call fcn.0049ab50
add esp, 0xc
test eax, eax
jne 0x49e68d
push edi
call fcn.004884f0
add esp, 4
jmp 0x49e5a7
mov eax, dword [esi + 0x50]
mov byte [ebp - 1], 0
cmp eax, 0x64
jl 0x49e2bd
cmp eax, 0xc7
jg 0x49e2bd
sub eax, 0x64
je 0x49e28d
sub eax, 1
je 0x49e242
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
jmp 0x49e328
cmp byte [edi + 0x314], 0xb
jne 0x49e694
cmp dword [esi + 0x6c], 2
jne 0x49e281
push str.Received_101__Switching_to_HTTP_2
push ebx
call fcn.00491e70
add esp, 8
mov dword [esi + 0x6c], 3
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
mov byte [ebp - 1], 1
jmp 0x49e328
mov byte [esi + 0xb3], 0
jmp 0x49e328
cmp dword [esi + 0x68], 0
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
jle 0x49e328
or dword [esi + 0x54], 2
push 0
push ebx
mov dword [esi + 0x68], 0
call fcn.00483020
add esp, 8
jmp 0x49e328
cmp dword [esi + 0x6c], 2
jne 0x49e2ce
push dword [ebx + 0x7c]
call fcn.00483100
add esp, 4
mov eax, dword [esi]
and eax, dword [esi + 4]
mov byte [esi + 0xb3], 0
cmp eax, 0xffffffff
jne 0x49e328
cmp byte [esi + 0xba], 0
jne 0x49e328
cmp byte [edi + 0x1ae], 0
jne 0x49e328
cmp byte [edi + 0x314], 0xb
jne 0x49e328
mov eax, dword [edi + 0x1c8]
test dword [eax + 0x44], 0x40000
jne 0x49e328
cmp byte [ebx + 0xd8a], 5
je 0x49e328
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push ebx
call fcn.00491e70
push 2
push edi
call fcn.00493070
add esp, 0x10
cmp byte [esi + 0xb3], 0
jne 0x49e342
push ebx
call fcn.0049d270
add esp, 4
test eax, eax
jne 0x49e68d
cmp byte [edi + 0x1ae], 0
je 0x49e386
mov eax, dword [ebx + 0xd8]
cmp eax, 0x191
jne 0x49e361
cmp dword [edi + 0x200], 2
je 0x49e371
cmp eax, 0x197
jne 0x49e386
cmp dword [edi + 0x204], 2
jne 0x49e386
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push ebx
call fcn.00491e70
add esp, 8
mov byte [ebx + 0xd91], 1
mov eax, dword [esi + 0x50]
sub eax, 0x64
cmp eax, 0x64
lea eax, [ebx + 0x8a8]
push eax
sbb edi, edi
and edi, 0x20
add edi, 4
call fcn.004884e0
add esp, 4
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.004885a0
add esp, 4
push eax
push edi
push ebx
call fcn.004922d0
add esp, 0x10
test eax, eax
jne 0x49e68d
push eax
push dword [ebp - 0x10]
push ebx
call fcn.0049ab50
add esp, 0xc
test eax, eax
jne 0x49e68d
push ebx
call fcn.0049e7c0
add esp, 4
test al, al
jne 0x49e6fb
mov eax, dword [esi + 0x50]
cmp eax, 0x64
jl 0x49e409
cmp eax, 0xc7
jg 0x49e409
mov eax, dword [ebx + 0xc0]
jmp 0x49e40b
xor eax, eax
push ebx
mov dword [ebx + 0xc8], eax
call fcn.0049b060
add esp, 4
test eax, eax
jne 0x49e68d
cmp dword [esi + 0x50], 0x12c
jl 0x49e581
mov edi, dword [ebp - 8]
cmp byte [edi + 0x1b8], al
jne 0x49e55d
cmp byte [edi + 0x1ae], al
jne 0x49e55d
cmp byte [ebx + 0xd9f], al
jne 0x49e566
mov al, byte [ebx + 0xd8a]
dec al
cmp al, 3
ja 0x49e55d
push 0
push ebx
call fcn.00483020
add esp, 8
cmp byte [esi + 0xb7], 0
jne 0x49e55d
cmp dword [esi + 0x50], 0x1a1
jne 0x49e4f8
cmp byte [ebx + 0xd93], 0
je 0x49e4f8
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x49e4ae
cmp dword [esi + 0x68], 1
jne 0x49e4ae
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push ebx
call fcn.00491e70
add esp, 8
jmp 0x49e4d3
push str.Got_HTTP_failure_417_while_sending_data
push ebx
call fcn.00491e70
push 2
push edi
call fcn.00493070
push edi
push ebx
call fcn.0049dba0
add esp, 0x18
test eax, eax
jne 0x49e68d
push dword [ebx + 0xcdc]
mov byte [ebx + 0xd94], 1
call dword [0x579348]
push esi
push ebx
mov dword [ebx + 0x110], eax
call fcn.0049fba0
add esp, 0xc
jmp 0x49e55d
cmp byte [ebx + 0x6bb], 0
je 0x49e522
push str.HTTP_error_before_end_of_send__keep_sending
push ebx
call fcn.00491e70
add esp, 8
cmp dword [esi + 0x68], 0
jle 0x49e55d
or dword [esi + 0x54], 2
mov dword [esi + 0x68], 0
jmp 0x49e55d
push str.HTTP_error_before_end_of_send__stop_sending
push ebx
call fcn.00491e70
push 2
push edi
call fcn.00493070
push esi
push ebx
call fcn.0049fba0
add esp, 0x18
test eax, eax
jne 0x49e68d
mov byte [esi + 0xb7], 1
cmp byte [ebx + 0xd93], al
je 0x49e55d
mov dword [esi + 0x68], 3
cmp byte [ebx + 0xd9f], 0
je 0x49e581
cmp dword [edi + 0x1e4], 0xffffffff
je 0x49e581
push str.Keep_sending_data_to_get_tossed_away
push ebx
call fcn.00491e70
add esp, 8
or dword [esi + 0x54], 2
cmp byte [esi + 0xb3], 0
je 0x49e6ae
lea eax, [ebx + 0x8a8]
push eax
call fcn.004884f0
add esp, 4
cmp byte [ebp - 1], 0
jne 0x49e7a6
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49e66c
mov edi, dword [ebp - 8]
jmp 0x49dd78
push 2
push edi
call fcn.00493070
add esp, 8
cmp byte [ebx + 0x6dc], 0
je 0x49e798
mov byte [esi + 0xb3], 0
mov al, 1
jmp 0x49e66f
push str.Unsupported_HTTP_version_in_response
push ebx
call fcn.00491db0
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 - 0x10]
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.00491db0
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.00491db0
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.00491db0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0xb3], 0
mov al, byte [ebp + 0xb]
cmp byte [esi + 0xb3], 0
jne 0x49e68b
test al, al
jne 0x49e68b
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488480
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.unexpected_101_response_code
push ebx
call fcn.00491db0
add esp, 8
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x147], 0
je 0x49e6be
mov byte [esi + 0xb5], 1
cmp dword [esi + 8], 0
jne 0x49e6d1
cmp dword [esi + 0xc], 0
jne 0x49e6d1
mov byte [esi + 0xb5], 1
lea edi, [ebx + 0x8a8]
push edi
call fcn.004884e0
add esp, 4
push eax
push edi
call fcn.004885a0
add esp, 4
push eax
push 1
push ebx
call fcn.00491d20
add esp, 0x10
jmp 0x49e66c
push dword [esi + 0x50]
push str.The_requested_URL_returned_error:__d
push ebx
call fcn.00491db0
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
lea eax, [ebx + 0x8a8]
push dword [ebp + 0xc]
push eax
call fcn.00488470
add esp, 0xc
test eax, eax
jne 0x49e68d
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
add dword [ecx], eax
cmp dword [esi + 0x44], 0
jne 0x49e66c
lea eax, [ebx + 0x8a8]
push eax
call fcn.004884e0
add esp, 4
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.004885a0
add esp, 4
push eax
push edi
push ebx
call fcn.0049d8e0
add esp, 0x10
cmp eax, 2
jne 0x49e66c
push eax
push edi
mov byte [esi + 0xb3], 0
call fcn.00493070
add esp, 8
cmp byte [ebx + 0x6dc], 0
jne 0x49e5d9
push str.Received_HTTP_0.9_when_not_allowed
push ebx
call fcn.00491db0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret