Function at 0x49dd40
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 0x49e708
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 0x49e67d
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 0x49dde7
lea eax, [ebx + 0x8a8]
push eax
call fcn.004884e0
add esp, 4
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.004884f0
add esp, 4
push eax
push edi
push ebx
call fcn.0049d8d0
add esp, 0x10
cmp eax, 2
je 0x49e5aa
lea eax, [ebx + 0x8a8]
push eax
call fcn.004884f0
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x49e1fa
cmp cl, 0xd
je 0x49e1fa
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x10], 4
lea eax, [ecx + 1]
mov dword [esi + 0x44], eax
test ecx, ecx
jne 0x49e157
mov eax, dword [edi + 0x1c8]
mov eax, dword [eax + 0x44]
test al, 3
je 0x49e045
mov al, byte [edx]
mov edi, edx
test al, al
je 0x49de50
cmp al, 0x20
je 0x49de48
cmp al, 9
jne 0x49de50
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49de40
push 5
push str.HTTP_
push edi
call fcn.00518940
add esp, 0xc
test eax, eax
jne 0x49deff
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x49df41
sub al, 0x32
cmp al, 1
ja 0x49e5d0
mov al, byte [edi + 6]
cmp al, 0x20
je 0x49de8a
cmp al, 9
jne 0x49deff
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 0x49deff
cmp cl, 0x39
jg 0x49deff
mov al, byte [edi + 8]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0x49deff
cmp al, 0x39
jg 0x49deff
mov al, byte [edi + 9]
mov byte [ebp - 2], al
cmp al, 0x30
jl 0x49deff
cmp al, 0x39
jg 0x49deff
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 0x49dfef
cmp al, 9
je 0x49dfef
cmp al, 0xa
jl 0x49deff
cmp al, 0xd
jle 0x49dfef
lea edi, [ebx + 0x8a8]
push edi
call fcn.004884e0
add esp, 4
push eax
push edi
call fcn.004884f0
add esp, 4
push eax
push ebx
call fcn.0049d810
add esp, 0xc
cmp eax, 1
jne 0x49e655
mov edi, dword [ebp - 8]
mov dword [esi + 0x50], 0xc8
mov byte [edi + 0x314], 0xa
jmp 0x49e13e
cmp byte [edi + 6], 0x2e
jne 0x49e63b
mov al, byte [edi + 7]
cmp al, 0x30
je 0x49df5a
cmp al, 0x31
jne 0x49e63b
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x49df6b
cmp cl, 9
jne 0x49e63b
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [ebp - 0x10], edx
cmp cl, 0x30
jl 0x49e63b
cmp cl, 0x39
jg 0x49e63b
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
cmp al, 0x30
jl 0x49e63b
cmp al, 0x39
jg 0x49e63b
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0x49e63b
cmp al, 0x39
jg 0x49e63b
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 0x49dfef
cmp al, 9
je 0x49dfef
cmp al, 0xa
jl 0x49e63b
cmp al, 0xd
jg 0x49e63b
cmp dword [esi + 0x50], 0x64
jl 0x49e621
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x49e5ea
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], dl
cmp dword [esi + 0x6c], 3
jne 0x49e027
cmp dl, 0x14
je 0x49e027
push str.Lying_server__not_serving_HTTP_2
push ebx
call fcn.00491e70
add esp, 8
cmp byte [edi + 0x314], 0x14
jae 0x49e13e
mov eax, dword [edi + 0x2e8]
mov dword [eax], 0xffffffff
jmp 0x49e13e
test eax, 0x40000
je 0x49e655
mov al, byte [edx]
mov edi, edx
test al, al
je 0x49e068
cmp al, 0x20
je 0x49e060
cmp al, 9
jne 0x49e068
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49e058
push 5
push str.RTSP_
push edi
call fcn.00518940
add esp, 0xc
test eax, eax
jne 0x49e655
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x49e692
cmp al, 0x39
jg 0x49e692
cmp byte [edi + 6], 0x2e
jne 0x49e692
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x49e692
cmp al, 0x39
jg 0x49e692
mov al, byte [edi + 8]
cmp al, 0x20
je 0x49e0bf
cmp al, 9
jne 0x49e692
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x49e692
cmp al, 0x39
jg 0x49e692
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x49e692
cmp dh, 0x39
jg 0x49e692
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x49e692
cmp dl, 0x39
jg 0x49e692
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 0x49e134
cmp al, 9
je 0x49e134
cmp al, 0xa
jl 0x49e692
cmp al, 0xd
jg 0x49e692
mov edi, dword [ebp - 8]
mov byte [edi + 0x314], 0xb
push edi
push ebx
call fcn.0049d330
add esp, 8
test eax, eax
jne 0x49e67d
mov dword [ebp - 0x10], 0xc
push ebx
call fcn.0049ebf0
add esp, 4
test eax, eax
jne 0x49e67d
push dword [ebp - 0xc]
push edi
push ebx
call fcn.0049bfa0
add esp, 0xc
test eax, eax
jne 0x49e67d
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 0x49e67d
push eax
lea edi, [ebx + 0x8a8]
push edi
call fcn.004884e0
add esp, 4
push eax
push ebx
call fcn.0049ab40
add esp, 0xc
test eax, eax
jne 0x49e67d
push edi
call fcn.00488500
add esp, 4
jmp 0x49e597
mov eax, dword [esi + 0x50]
mov byte [ebp - 1], 0
cmp eax, 0x64
jl 0x49e2ad
cmp eax, 0xc7
jg 0x49e2ad
sub eax, 0x64
je 0x49e27d
sub eax, 1
je 0x49e232
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
jmp 0x49e318
cmp byte [edi + 0x314], 0xb
jne 0x49e684
cmp dword [esi + 0x6c], 2
jne 0x49e271
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 0x49e318
mov byte [esi + 0xb3], 0
jmp 0x49e318
cmp dword [esi + 0x68], 0
mov byte [esi + 0xb3], 1
mov dword [esi + 0x44], 0
jle 0x49e318
or dword [esi + 0x54], 2
push 0
push ebx
mov dword [esi + 0x68], 0
call fcn.00483030
add esp, 8
jmp 0x49e318
cmp dword [esi + 0x6c], 2
jne 0x49e2be
push dword [ebx + 0x7c]
call fcn.00483110
add esp, 4
mov eax, dword [esi]
and eax, dword [esi + 4]
mov byte [esi + 0xb3], 0
cmp eax, 0xffffffff
jne 0x49e318
cmp byte [esi + 0xba], 0
jne 0x49e318
cmp byte [edi + 0x1ae], 0
jne 0x49e318
cmp byte [edi + 0x314], 0xb
jne 0x49e318
mov eax, dword [edi + 0x1c8]
test dword [eax + 0x44], 0x40000
jne 0x49e318
cmp byte [ebx + 0xd8a], 5
je 0x49e318
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 0x49e332
push ebx
call fcn.0049d260
add esp, 4
test eax, eax
jne 0x49e67d
cmp byte [edi + 0x1ae], 0
je 0x49e376
mov eax, dword [ebx + 0xd8]
cmp eax, 0x191
jne 0x49e351
cmp dword [edi + 0x200], 2
je 0x49e361
cmp eax, 0x197
jne 0x49e376
cmp dword [edi + 0x204], 2
jne 0x49e376
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.004884f0
add esp, 4
push eax
push edi
push ebx
call fcn.004922d0
add esp, 0x10
test eax, eax
jne 0x49e67d
push eax
push dword [ebp - 0x10]
push ebx
call fcn.0049ab40
add esp, 0xc
test eax, eax
jne 0x49e67d
push ebx
call fcn.0049e7b0
add esp, 4
test al, al
jne 0x49e6eb
mov eax, dword [esi + 0x50]
cmp eax, 0x64
jl 0x49e3f9
cmp eax, 0xc7
jg 0x49e3f9
mov eax, dword [ebx + 0xc0]
jmp 0x49e3fb
xor eax, eax
push ebx
mov dword [ebx + 0xc8], eax
call fcn.0049b050
add esp, 4
test eax, eax
jne 0x49e67d
cmp dword [esi + 0x50], 0x12c
jl 0x49e571
mov edi, dword [ebp - 8]
cmp byte [edi + 0x1b8], al
jne 0x49e54d
cmp byte [edi + 0x1ae], al
jne 0x49e54d
cmp byte [ebx + 0xd9f], al
jne 0x49e556
mov al, byte [ebx + 0xd8a]
dec al
cmp al, 3
ja 0x49e54d
push 0
push ebx
call fcn.00483030
add esp, 8
cmp byte [esi + 0xb7], 0
jne 0x49e54d
cmp dword [esi + 0x50], 0x1a1
jne 0x49e4e8
cmp byte [ebx + 0xd93], 0
je 0x49e4e8
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x49e49e
cmp dword [esi + 0x68], 1
jne 0x49e49e
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push ebx
call fcn.00491e70
add esp, 8
jmp 0x49e4c3
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.0049db90
add esp, 0x18
test eax, eax
jne 0x49e67d
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 0x49e54d
cmp byte [ebx + 0x6bb], 0
je 0x49e512
push str.HTTP_error_before_end_of_send__keep_sending
push ebx
call fcn.00491e70
add esp, 8
cmp dword [esi + 0x68], 0
jle 0x49e54d
or dword [esi + 0x54], 2
mov dword [esi + 0x68], 0
jmp 0x49e54d
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 0x49e67d
mov byte [esi + 0xb7], 1
cmp byte [ebx + 0xd93], al
je 0x49e54d
mov dword [esi + 0x68], 3
cmp byte [ebx + 0xd9f], 0
je 0x49e571
cmp dword [edi + 0x1e4], 0xffffffff
je 0x49e571
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 0x49e69e
lea eax, [ebx + 0x8a8]
push eax
call fcn.00488500
add esp, 4
cmp byte [ebp - 1], 0
jne 0x49e796
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49e65c
mov edi, dword [ebp - 8]
jmp 0x49dd68
push 2
push edi
call fcn.00493070
add esp, 8
cmp byte [ebx + 0x6dc], 0
je 0x49e788
mov byte [esi + 0xb3], 0
mov al, 1
jmp 0x49e65f
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 0x49e67b
test al, al
jne 0x49e67b
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 0x49e6ae
mov byte [esi + 0xb5], 1
cmp dword [esi + 8], 0
jne 0x49e6c1
cmp dword [esi + 0xc], 0
jne 0x49e6c1
mov byte [esi + 0xb5], 1
lea edi, [ebx + 0x8a8]
push edi
call fcn.004884e0
add esp, 4
push eax
push edi
call fcn.004884f0
add esp, 4
push eax
push 1
push ebx
call fcn.00491d20
add esp, 0x10
jmp 0x49e65c
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 0x49e67d
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
add dword [ecx], eax
cmp dword [esi + 0x44], 0
jne 0x49e65c
lea eax, [ebx + 0x8a8]
push eax
call fcn.004884e0
add esp, 4
push eax
lea eax, [ebx + 0x8a8]
push eax
call fcn.004884f0
add esp, 4
push eax
push edi
push ebx
call fcn.0049d8d0
add esp, 0x10
cmp eax, 2
jne 0x49e65c
push eax
push edi
mov byte [esi + 0xb3], 0
call fcn.00493070
add esp, 8
cmp byte [ebx + 0x6dc], 0
jne 0x49e5c9
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